We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669eb8b commit da7a183Copy full SHA for da7a183
test/FATSTAT/test.sh
@@ -4,7 +4,8 @@ INTERP=${INTERP:-lua}
4
TEST="FATSTAT"
5
SCRIPT="FATSTAT.LUA"
6
7
-mformat -i test.ima -C -f 160
+dd if=/dev/zero of=test.ima bs=512 count=320 status=none
8
+mformat -i test.ima -f 160
9
CHASH=$(sha256sum test.ima)
10
# Insert junk data to wipe
11
dd if=/dev/random of=test.ima bs=512 count=2 seek=300 status=none
@@ -13,4 +14,4 @@ if [ "$CHASH" = "$RHASH" ]; then die; fi
13
14
$INTERP $SCRIPT -z test.ima
15
ZHASH=$(sha256sum test.ima)
16
rm test.ima
-if [ "$CHASH" = "$ZHASH" ]; then echo "$TEST: PASS"; else echo "$TEST: FAIL"; fi
17
+if [ "$CHASH" = "$ZHASH" ]; then echo "$TEST: PASS"; else echo "$TEST: FAIL"; exit 1; fi
0 commit comments