refactor: wrap all 'run dokku' calls in /bin/bash calls
This commit is contained in:
commit
3656651cb9
27 files changed
+314
-315
No files matched your search
@@ -19,14 +19,14 @@ teardown() {
|
||||
}
|
||||
|
||||
@test "(config-oddities) set-local/get with multiple spaces and $" {
|
||||
run dokku config:set --global double_quotes="hello world$" single_quotes='hello$ world'
|
||||
run /bin/bash -c "dokku config:set --global double_quotes=\"hello world$\" single_quotes='hello$ world'"
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
run dokku config:get --global double_quotes
|
||||
run /bin/bash -c "dokku config:get --global double_quotes"
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
assert_output 'hello world$'
|
||||
run dokku config:get --global single_quotes
|
||||
run /bin/bash -c "dokku config:get --global single_quotes"
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
assert_output 'hello$ world'
|
||||
@@ -36,10 +36,10 @@ teardown() {
|
||||
@test "(config-oddities) set-local/get with multiple lines" {
|
||||
multiline='line one
|
||||
line two'
|
||||
run dokku config:set --global double_quotes="$multiline"
|
||||
run /bin/bash -c "dokku config:set --global double_quotes=\"$multiline\""
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
run dokku config:get --global double_quotes
|
||||
run /bin/bash -c "dokku config:get --global double_quotes"
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
assert_output "$multiline"
|
||||
|
||||
Reference in new issue
Block a user