Commit c95b2cee authored by Antonio Terceiro's avatar Antonio Terceiro

debci-autopkgtest: make it work when run standalone

debci-autopkgtest is usually called from the different backends, but it
would be nice to also make it work standalone.
parent 1fcbb6b1
......@@ -2,8 +2,8 @@
set -eu
if [ $# -lt 2 ]; then
echo "usage: $0 OUTPUDIR [AUTOPKGTEST ARGUMENTS ...]"
if [ $# -lt 1 ]; then
echo "usage: $0 [AUTOPKGTEST ARGUMENTS ...]"
exit 1
fi
......@@ -12,5 +12,7 @@ autopkgtest \
--no-built-binaries --no-apt-fallback \
"$@" || rc=$?
echo $rc > "$debci_test_outputdir/exitcode"
if [ -n "${debci_test_outputdir:-}" ]; then
echo $rc > "$debci_test_outputdir/exitcode"
fi
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