From 6ae49bddfd069fd8d17cbdd2325b8770cf53534a Mon Sep 17 00:00:00 2001 From: Fumiaki MATSUSHIMA Date: Thu, 6 Apr 2023 15:24:57 +0900 Subject: [PATCH] Revert "Surround URL replacements option with quotes" This reverts commit b42706737d6e3b005712184d00645db9782c7ee6. --- script.bash | 2 +- test/test.bash | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script.bash b/script.bash index 7f9a8be..2f44c28 100755 --- a/script.bash +++ b/script.bash @@ -37,7 +37,7 @@ fi if [ -n "${INPUT_URL_REPLACEMENTS}" ]; then IFS=',' read -ra URL_REPLACEMENTS <<< "${INPUT_URL_REPLACEMENTS}" for url_replacement in "${URL_REPLACEMENTS[@]}"; do - add_args "-r=\"${url_replacement}\"" + add_args "-r=${url_replacement}" done fi diff --git a/test/test.bash b/test/test.bash index 67b48a5..6fd7ec9 100755 --- a/test/test.bash +++ b/test/test.bash @@ -133,7 +133,7 @@ function test_multiline_output() { export INPUT_AUTIFY_TEST_URL=a export INPUT_WAIT=true export INPUT_TIMEOUT=300 - export INPUT_URL_REPLACEMENTS="https://example.com https://example.net,https://example.net https://example.com?foo=bar" + export INPUT_URL_REPLACEMENTS=b1,b2 export INPUT_MAX_RETRY_COUNT=c export INPUT_TEST_EXECUTION_NAME=d export INPUT_BROWSER=e @@ -144,11 +144,11 @@ function test_multiline_output() { export INPUT_AUTIFY_CONNECT=j export INPUT_AUTIFY_CONNECT_CLIENT=true export INPUT_AUTIFY_CONNECT_CLIENT_EXTRA_ARGUMENTS=k - test_command "autify web test run a --wait -t=300 -r=\"https://example.com https://example.net\" -r=\"https://example.net https://example.com?foo=bar\" --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k" + test_command "autify web test run a --wait -t=300 -r=b1 -r=b2 --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k" test_code 0 test_log test_output exit-code "0" - test_multiline_output log "autify web test run a --wait -t=300 -r=\"https://example.com https://example.net\" -r=\"https://example.net https://example.com?foo=bar\" --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k\n$(cat "$log_file")" + test_multiline_output log "autify web test run a --wait -t=300 -r=b1 -r=b2 --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k\n$(cat "$log_file")" test_output result-url "https://result" }