Skip to content
Snippets Groups Projects
Verified Commit 25c05761 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

Also test on autopkgtest return code when passing a invalid command line flag

parent e7209f03
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,12 @@ if [ $? -ne 1 ]; then
exit 1
fi
diffoscope --thisflagdoesntexistandwontexist
if [ $? -ne 2 ]; then
echo "Exit code was different from 2 when passing a non-existent flag." >&2
exit 1
fi
if [ -n "${TEMP:-}" ]; then
rm -rf "$ADTTMP"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment