Commit 87a42817 authored by Antonio Terceiro's avatar Antonio Terceiro

debci localtest: skip --shell-fail it not on a tty

parent 582ba7bf
...@@ -19,8 +19,12 @@ export debci_autopkgtest_args ...@@ -19,8 +19,12 @@ export debci_autopkgtest_args
export debci_test_package="$pkg" export debci_test_package="$pkg"
export debci_test_outputdir="$logs" export debci_test_outputdir="$logs"
if [ -t 1 ]; then
rc=0 rc=0
test-package --output-dir="$logs" --shell-fail "$pkg" "$@" || rc="$?" test-package --output-dir="$logs" $extra_opts "$pkg" "$@" || rc="$?"
echo "I: test artifacts available at $logs" echo "I: test artifacts available at $logs"
exit "$rc" exit "$rc"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment