File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -666,7 +666,7 @@ test_code_gives_ps_appropriate_parameters() {
66666624162 pts/7 00:00:00 ps
667667 8387 ? 0:00 /usr/sbin/apache2 -k start
668668EOF
669- assert_equals ax "$FAKE_PARAMS"
669+ assert_equals ax "${ FAKE_PARAMS[@]} "
670670 }
671671 export -f _ps
672672 fake ps _ps
@@ -700,7 +700,7 @@ code() {
700700
701701test_code_gives_ps_appropriate_parameters() {
702702 _ps() {
703- assert_equals ax "$FAKE_PARAMS"
703+ assert_equals ax "${ FAKE_PARAMS[@]} "
704704 }
705705 export -f _ps
706706 fake ps _ps
@@ -730,7 +730,7 @@ code() {
730730
731731test_code_gives_ps_appropriate_parameters() {
732732 _ps() {
733- echo $FAKE_PARAMS > /tmp/fake_params
733+ echo ${ FAKE_PARAMS[@]} > /tmp/fake_params
734734 }
735735 export -f _ps
736736 fake ps _ps
@@ -765,7 +765,7 @@ code() {
765765}
766766
767767test_code_gives_ps_appropriate_parameters() {
768- fake ps 'echo $FAKE_PARAMS >/tmp/fake_params'
768+ fake ps 'echo ${ FAKE_PARAMS[@]} >/tmp/fake_params'
769769
770770 code || true
771771
@@ -794,7 +794,7 @@ test_get_data_from_fake() {
794794 #Fasten you seat belt ...
795795 coproc cat
796796 exec {test_channel}>&${COPROC[1]}
797- fake ps 'echo $FAKE_PARAMS >&$test_channel'
797+ fake ps 'echo ${ FAKE_PARAMS[@]} >&$test_channel'
798798
799799 code || true
800800
You can’t perform that action at this time.
0 commit comments