fix: wrap all output and status variables in quotes
This will ensure newlines are replaced when these variables are output for debugging tests
This commit is contained in:
1 parent
3656651cb9
commit
2fc51bcf53
26 files changed
+833
-833
No files matched your search
@@ -20,15 +20,15 @@ teardown() {
|
||||
|
||||
@test "(config-oddities) set-local/get with multiple spaces and $" {
|
||||
run /bin/bash -c "dokku config:set --global double_quotes=\"hello world$\" single_quotes='hello$ world'"
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
run /bin/bash -c "dokku config:get --global double_quotes"
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output 'hello world$'
|
||||
run /bin/bash -c "dokku config:get --global single_quotes"
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output 'hello$ world'
|
||||
assert_success
|
||||
}
|
||||
@@ -37,11 +37,11 @@ teardown() {
|
||||
multiline='line one
|
||||
line two'
|
||||
run /bin/bash -c "dokku config:set --global double_quotes=\"$multiline\""
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
run /bin/bash -c "dokku config:get --global double_quotes"
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output "$multiline"
|
||||
assert_success
|
||||
}
|
||||
Reference in new issue
Block a user