[msitools: 3/4] tests: fix null byte warning
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [msitools: 3/4] tests: fix null byte warning
- Date: Mon, 11 Jan 2021 12:20:43 +0000 (UTC)
commit 7ddd0e826d94f6f18db16937d4da037b5b48095c
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Mon Jan 11 16:11:59 2021 +0400
tests: fix null byte warning
gitlab CI get a new warning that make the test failing:
warning: command substitution: ignored null byte in input
Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
tests/tools.bats | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/tools.bats b/tests/tools.bats
index 1d50c1c..d16f6c6 100644
--- a/tests/tools.bats
+++ b/tests/tools.bats
@@ -124,8 +124,8 @@ Binary" ]
run "$msiinfo" streams out.msi
out=$(echo "$output" | grep -v SummaryInformation)
[ "$out" = "Icon.firefox.16.0.2.0.ico.exe" ]
- run "$msiinfo" extract out.msi Icon.firefox.16.0.2.0.ico.exe
- exp=$(cat Icon/firefox.16.0.2.0.ico.exe)
+ output=$("$msiinfo" extract out.msi Icon.firefox.16.0.2.0.ico.exe | sha1sum)
+ exp=$(cat Icon/firefox.16.0.2.0.ico.exe | sha1sum)
[ "$output" = "$exp" ]
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]