diff --git a/systemtest/010-inspect.bats b/systemtest/010-inspect.bats index b465d086bd..7da9bad943 100644 --- a/systemtest/010-inspect.bats +++ b/systemtest/010-inspect.bats @@ -44,7 +44,7 @@ load helpers # # The reason for a hardcoded list, instead of 'jq keys', is that RepoTags # is always empty locally, but a list remotely. - while read key expect; do + while IFS=$' \t\n' read key expect; do local=$(echo "$inspect_local" | jq -r ".$key") remote=$(echo "$inspect_remote" | jq -r ".$key") diff --git a/systemtest/050-signing.bats b/systemtest/050-signing.bats index 4f52141513..0f035c1687 100644 --- a/systemtest/050-signing.bats +++ b/systemtest/050-signing.bats @@ -97,7 +97,7 @@ END_POLICY_JSON # Push a bunch of images. Do so *without* --policy flag; this lets us # sign or not, creating images that will or won't conform to policy. - while read path sig comments; do + while IFS=$' \t\n' read path sig comments; do local sign_opt= if [[ $sig != '-' ]]; then sign_opt="--sign-by=${sig}@test.redhat.com" @@ -118,7 +118,7 @@ END_PUSH # Done pushing. Now try to fetch. From here on we use the --policy option. # The table below lists the paths to fetch, and the expected errors (or # none, if we expect them to pass). - while read path expected_error; do + while IFS=$' \t\n' read path expected_error; do expected_rc= if [[ -n $expected_error ]]; then expected_rc=1