From f1672d5e5963f3d44683c8fdb57cad4dfbd65b60 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Aug 11 2020 12:12:33 +0000 Subject: beaker-tests: double-quote command outputs When something bad happens, the output can contain spaces and the rlAssertEquals() method gets unexpected number of arguments. --- diff --git a/beaker-tests/Sanity/copr-cli-basic-operations/runtest.sh b/beaker-tests/Sanity/copr-cli-basic-operations/runtest.sh index 413f7b3..8d68f18 100755 --- a/beaker-tests/Sanity/copr-cli-basic-operations/runtest.sh +++ b/beaker-tests/Sanity/copr-cli-basic-operations/runtest.sh @@ -331,9 +331,9 @@ rlJournalStart cat $OUTPUT | jq '.latest_build' > $LATEST_BUILD cat $OUTPUT | jq '.latest_succeeded_build' > $LATEST_SUCCEEDED_BUILD - rlAssertEquals "Builds are empty" `cat $BUILDS` '[]' - rlAssertEquals "There is no latest build." `cat $LATEST_BUILD` 'null' - rlAssertEquals "And there is no latest succeeded build." `cat $LATEST_SUCCEEDED_BUILD` 'null' + rlAssertEquals "Builds are empty" "`cat $BUILDS`" '[]' + rlAssertEquals "There is no latest build." "`cat $LATEST_BUILD`" 'null' + rlAssertEquals "And there is no latest succeeded build." "`cat $LATEST_SUCCEEDED_BUILD`" 'null' TMP=`mktemp -d` # run the build and wait