mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
tests: Change test-corruption to use fatal()
It's clearer. Closes: #1364 Approved by: jlebon
This commit is contained in:
parent
73d910e82e
commit
d102cd7db0
@ -29,7 +29,9 @@ setup_test_repository "bare"
|
||||
$OSTREE checkout test2 checkout-test2
|
||||
cd checkout-test2
|
||||
chmod o+x firstfile
|
||||
$OSTREE fsck -q && (echo 1>&2 "fsck unexpectedly succeeded"; exit 1)
|
||||
if $OSTREE fsck -q; then
|
||||
fatal "fsck unexpectedly succeeded"
|
||||
fi
|
||||
chmod o-x firstfile
|
||||
$OSTREE fsck -q
|
||||
|
||||
@ -54,7 +56,9 @@ rm checkout-test2 -rf
|
||||
$OSTREE checkout test2 checkout-test2
|
||||
cd checkout-test2
|
||||
chmod o+x firstfile
|
||||
$OSTREE fsck -q --delete && (echo 1>&2 "fsck unexpectedly succeeded"; exit 1)
|
||||
if $OSTREE fsck -q --delete; then
|
||||
fatal "fsck unexpectedly succeeded"
|
||||
fi
|
||||
|
||||
echo "ok chmod"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user