diff --git a/tests/e2e_regression/run.sh b/tests/e2e_regression/run.sh index 5b8f0d3e7..9651df3ab 100755 --- a/tests/e2e_regression/run.sh +++ b/tests/e2e_regression/run.sh @@ -89,7 +89,7 @@ for ((i = 0; i < nCases; i++)); do >/tmp/pretty 2>/dev/null && cp /tmp/pretty "$outDir/$name.body" || true # Sanitize the current timestamp out of the response header so that diffs are stable - sed -i -E 's/^(Date|Content-Length|Last-Modified): .*/\1: UNINTERESTING/g' "$outDir/$name.headers" + sed -i '' -E 's/^(Date|Content-Length|Last-Modified): .*/\1: UNINTERESTING/g' "$outDir/$name.headers" else # $param is a SQL query; fetch the DB response $psql -A -o /dev/stdout -c "COPY ($param) TO STDOUT CSV HEADER" | sed $'s/\r$//' >"$outDir/$name.csv" \ @@ -103,7 +103,7 @@ diff --recursive "$TEST_DIR/expected" "$outDir" >/dev/null || { { # The expected files contain a symlink, which 'git diff' cannot follow (but regular 'diff' can). # Create a copy of the `expected` dir with the symlink contents materialized; we'll diff against that. - rm -rf /tmp/nexus-e2e-expected; cp -r --dereference "$TEST_DIR/expected" /tmp/nexus-e2e-expected; + rm -rf /tmp/nexus-e2e-expected; cp -rL "$TEST_DIR/expected" /tmp/nexus-e2e-expected; } if [[ -t 1 ]]; then # Running in a terminal echo "Press enter see the diff, or Ctrl-C to abort."