summaryrefslogtreecommitdiff
path: root/tests/test-mkfs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-mkfs')
-rwxr-xr-xtests/test-mkfs14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/test-mkfs b/tests/test-mkfs
index 0bedbec..fd79824 100755
--- a/tests/test-mkfs
+++ b/tests/test-mkfs
@@ -24,11 +24,11 @@
run_mkfs () {
- "../src/mkfs.fat" "$@"
+ $RUN "../src/mkfs.fat" "$@"
}
run_fsck () {
- "../src/fsck.fat" "$@"
+ $RUN "../src/fsck.fat" "$@"
}
@@ -63,11 +63,13 @@ fi
cmp $limitarg "${testname}.out" "${testname}.refimg"
success=$?
+echo
+echo "Testing fsck..."
+run_fsck -n "${testname}.out"
+success_fsck=$?
+
if [ $success -eq 0 ]; then
- echo
- echo "Testing fsck..."
- run_fsck -n "${testname}.out"
- success=$?
+ success=$success_fsck
fi
rm -f "${testname}.out" "${testname}.refimg"