[PATCH 1/2] Double quote when printing error results from a kickstart test.

Chris Lumens clumens at redhat.com
Wed Jan 21 21:54:06 UTC 2015


I made life hard on myself and put asterisks in the output, so I need to
double quote everything here to prevent a file listing on the host from
getting printed out.
---
 tests/kickstart_tests/basic-ostree.sh      | 2 +-
 tests/kickstart_tests/groups-and-envs-1.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/kickstart_tests/basic-ostree.sh b/tests/kickstart_tests/basic-ostree.sh
index b6fab5b..0416f4f 100755
--- a/tests/kickstart_tests/basic-ostree.sh
+++ b/tests/kickstart_tests/basic-ostree.sh
@@ -55,7 +55,7 @@ validate() {
         echo '*** /root/RESULT does not exist in VM image.'
     elif [[ "${result}" != "SUCCESS" ]]; then
         status=1
-        echo ${result}
+        echo "${result}"
     fi
 
     return ${status}
diff --git a/tests/kickstart_tests/groups-and-envs-1.sh b/tests/kickstart_tests/groups-and-envs-1.sh
index ebbc9f7..e8fef0a 100755
--- a/tests/kickstart_tests/groups-and-envs-1.sh
+++ b/tests/kickstart_tests/groups-and-envs-1.sh
@@ -48,7 +48,7 @@ validate() {
         echo '*** /root/RESULT does not exist in VM image.'
     elif [[ "${result}" != "SUCCESS" ]]; then
         status=1
-        echo ${result}
+        echo "${result}"
     fi
 
     return ${status}
-- 
2.2.1



More information about the anaconda-patches mailing list