Skip to content

Commit

Permalink
test: only set realpath for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 13, 2024
1 parent e80ee4c commit cdd1c93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/run_test
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ TEST_SCRIPT="$SCRIPT_DIR/$TEST"

setup_isolated_env() {
TEST_ISOLATED_DIR="$(mktemp --tmpdir --directory "$(basename "$TEST").XXXXXX")"
TEST_ISOLATED_DIR="$(realpath "$TEST_ISOLATED_DIR")"
if [[ $(os) == "macos" ]]; then
TEST_ISOLATED_DIR="$(realpath "$TEST_ISOLATED_DIR")"
fi

# Use a fake HOME and a fake temporary directory
TEST_HOME="$TEST_ISOLATED_DIR/home"
Expand Down

0 comments on commit cdd1c93

Please sign in to comment.