From b84beb5e6670af7d08ec6db0aba2b366fc200ead Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 8 Jun 2024 14:56:35 +0200 Subject: [PATCH] test: fix tests on ubuntu --- test/tools/ls/escape.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tools/ls/escape.sh b/test/tools/ls/escape.sh index 1c244ad1..00e70266 100755 --- a/test/tools/ls/escape.sh +++ b/test/tools/ls/escape.sh @@ -30,7 +30,7 @@ printf "dir\x1b d 777 0 0\n" > "$PWD/escape.pseudo"; $MKSQUASHFS "$PWD/empty" "$PWD/escape.squashfs" -pf "$PWD/escape.pseudo" \ $MKSQUASHFS_OPTS result=$($SQSH_LS -r --escape "$PWD/escape.squashfs") -[ "$result" = "/dir\e" ] +[ "$result" = "$(printf "%s" "/dir\e")" ] result=$($SQSH_LS -r --raw "$PWD/escape.squashfs") [ "$result" = "$(printf "/dir\e")" ]