Skip to content

Commit 68f39f6

Browse files
committed
address shellcheck concerns in run-int-tests.sh
FAB-15930 #done Change-Id: Ic44d14357a3205e0f07682f6240e4fd668b66f30 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent 3162743 commit 68f39f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/run-integration-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ fabric_dir="$(cd "$(dirname "$0")/.." && pwd)"
1616
integration_dirs() {
1717
local packages="$1"
1818

19-
go list -f {{.Dir}} "$packages" | grep -E '/integration($|/)' | sed "s,${fabric_dir},.,g"
19+
go list -f '{{.Dir}}' "$packages" | grep -E '/integration($|/)' | sed "s,${fabric_dir},.,g"
2020
}
2121

2222
main() {
2323
cd "$fabric_dir"
2424

2525
local -a dirs=("$@")
2626
if [ "${#dirs[@]}" -eq 0 ]; then
27-
dirs=($(integration_dirs "./..."))
27+
while IFS=$'\n' read -r pkg; do dirs+=("$pkg"); done < <(integration_dirs "./...")
2828
fi
2929

3030
echo "Running integration tests..."

0 commit comments

Comments
 (0)