tests/functional/nars.sh: Fail test if touch fails, comment

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
Robert Hensing 2024-10-07 14:54:35 +02:00 committed by GitHub
parent f8268cbe16
commit 011fa9e085
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,10 +103,11 @@ rm -rf "$TEST_ROOT/out"
set +e set +e
unicodeTestOut=$(nix-store --restore "$TEST_ROOT/out" < unnormalized.nar 2>&1) unicodeTestOut=$(nix-store --restore "$TEST_ROOT/out" < unnormalized.nar 2>&1)
unicodeTestCode=$? unicodeTestCode=$?
touch "$TEST_ROOT/unicode-â"
touch "$TEST_ROOT/unicode-â"
set -e set -e
touch "$TEST_ROOT/unicode-â" # non-canonical version
touch "$TEST_ROOT/unicode-â"
touchFilesCount=$(find "$TEST_ROOT" -maxdepth 1 -name "unicode-*" -type f | wc -l) touchFilesCount=$(find "$TEST_ROOT" -maxdepth 1 -name "unicode-*" -type f | wc -l)
if (( unicodeTestCode == 1 )); then if (( unicodeTestCode == 1 )); then