File tree 1 file changed +5
-5
lines changed
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() {
666
666
24162 pts/7 00:00:00 ps
667
667
8387 ? 0:00 /usr/sbin/apache2 -k start
668
668
EOF
669
- assert_equals ax "$FAKE_PARAMS"
669
+ assert_equals ax "${ FAKE_PARAMS[@]} "
670
670
}
671
671
export -f _ps
672
672
fake ps _ps
@@ -700,7 +700,7 @@ code() {
700
700
701
701
test_code_gives_ps_appropriate_parameters() {
702
702
_ps() {
703
- assert_equals ax "$FAKE_PARAMS"
703
+ assert_equals ax "${ FAKE_PARAMS[@]} "
704
704
}
705
705
export -f _ps
706
706
fake ps _ps
@@ -730,7 +730,7 @@ code() {
730
730
731
731
test_code_gives_ps_appropriate_parameters() {
732
732
_ps() {
733
- echo $FAKE_PARAMS > /tmp/fake_params
733
+ echo ${ FAKE_PARAMS[@]} > /tmp/fake_params
734
734
}
735
735
export -f _ps
736
736
fake ps _ps
@@ -765,7 +765,7 @@ code() {
765
765
}
766
766
767
767
test_code_gives_ps_appropriate_parameters() {
768
- fake ps 'echo $FAKE_PARAMS >/tmp/fake_params'
768
+ fake ps 'echo ${ FAKE_PARAMS[@]} >/tmp/fake_params'
769
769
770
770
code || true
771
771
@@ -794,7 +794,7 @@ test_get_data_from_fake() {
794
794
#Fasten you seat belt ...
795
795
coproc cat
796
796
exec {test_channel}>&${COPROC[1]}
797
- fake ps 'echo $FAKE_PARAMS >&$test_channel'
797
+ fake ps 'echo ${ FAKE_PARAMS[@]} >&$test_channel'
798
798
799
799
code || true
800
800
You can’t perform that action at this time.
0 commit comments