My previous patch introduces one minor bug in test. It has falsely escaped quotes in the
$() form. The following patch fixes it.
RR
Show replies by date
In the $() form of command substitution the quotes shouldn't be escaped.
Signed-off-by: Roman Rakus <rrakus(a)redhat.com>
---
src/test/testingTest.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/testingTest.sh b/src/test/testingTest.sh
index 9dddfcd..bff3c0f 100644
--- a/src/test/testingTest.sh
+++ b/src/test/testingTest.sh
@@ -302,11 +302,11 @@ test_rlReport(){
do
OUT="$(rlReport TEST $res | grep ANCHOR)"
assertTrue "testing basic rlReport functionality" "[
\"$OUT\" == \"ANCHOR NAME: TEST\nRESULT: $res\n LOGFILE:
$OUTPUTFILE\nSCORE: \" ]"
- OUT="$(rlReport \"TEST TEST\" $res | grep ANCHOR)"
+ OUT="$(rlReport "TEST TEST" $res | grep ANCHOR)"
assertTrue "testing if rlReport can handle spaces in test name" "[
\"$OUT\" == \"ANCHOR NAME: TEST TEST\nRESULT: $res\n LOGFILE:
$OUTPUTFILE\nSCORE: \" ]"
- OUT="$(rlReport \"TEST\" $res 5 \"/tmp/logname\" | grep
ANCHOR)"
+ OUT="$(rlReport "TEST" $res 5 "/tmp/logname" | grep
ANCHOR)"
assertTrue "testing if rlReport can handle all arguments" "[
\"$OUT\" == \"ANCHOR NAME: TEST\nRESULT: $res\n LOGFILE:
/tmp/logname\nSCORE: 5\" ]"
- OUT="$(rlReport \"TEST TEST\" $res 8 \"/tmp/log name\" |
grep ANCHOR)"
+ OUT="$(rlReport "TEST TEST" $res 8 "/tmp/log name" | grep
ANCHOR)"
assertTrue "testing if rlReport can handle spaces in test name and log
file" "[ \"$OUT\" == \"ANCHOR NAME: TEST TEST\nRESULT: $res\n
LOGFILE: /tmp/log name\nSCORE: 8\" ]"
done
rlPhaseEnd &> /dev/null
--
1.7.4