[ostree] test-auto-summary.sh properly quote arguments to assert_streq



commit 8ab2e60edcb0d7b32d3d2f7892914951acbb4fe7
Author: Giuseppe Scrivano <gscrivan redhat com>
Date:   Fri Apr 24 15:42:28 2015 +0200

    test-auto-summary.sh properly quote arguments to assert_streq
    
    Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>

 tests/test-auto-summary.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-auto-summary.sh b/tests/test-auto-summary.sh
index 6cc4f06..0998b1e 100755
--- a/tests/test-auto-summary.sh
+++ b/tests/test-auto-summary.sh
@@ -43,7 +43,7 @@ echo hello2 > test/a
 ${CMD_PREFIX} $OSTREE commit -b test -s "Another commit" test
 echo "ok commit 2"
 
-assert_streq $OLD_MD5 $(md5sum repo/summary)
+assert_streq "$OLD_MD5" "$(md5sum repo/summary)"
 
 ${CMD_PREFIX} $OSTREE --repo=repo config set core.commit-update-summary true
 
@@ -52,4 +52,4 @@ echo hello3 > test/a
 ${CMD_PREFIX} $OSTREE commit -b test -s "Another commit..." test
 echo "ok commit 3"
 
-assert_not_streq $OLD_MD5 $(md5sum repo/summary)
+assert_not_streq "$OLD_MD5" "$(md5sum repo/summary)"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]