diff options
Diffstat (limited to 'tests/run_cgpt_tests.sh')
-rwxr-xr-x | tests/run_cgpt_tests.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run_cgpt_tests.sh b/tests/run_cgpt_tests.sh index 847c0813..95840fbb 100755 --- a/tests/run_cgpt_tests.sh +++ b/tests/run_cgpt_tests.sh @@ -21,6 +21,12 @@ DIR="${TEST_DIR}/cgpt_test_dir" warning "testing $CGPT in $DIR" cd "$DIR" +# Test failure on non existing file. +set +e +${CGPT} show blah_404_haha +[ $? != 0 ] || error "CGPT should fail on non existing file." +set -e + echo "Create an empty file to use as the device..." NUM_SECTORS=1000 DEV=fake_dev.bin |