diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2024-08-16 09:42:37 +0200 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2024-08-16 11:19:07 +0200 |
| commit | 4ef27f854d99f154feabf8a04f9ad5241150a315 (patch) | |
| tree | e903adf85fb40f6517c2e811aa881bc957af1cb0 /test/scripts | |
| parent | afc15082c8d4e1c4e1fe392eb75d2f62e0486359 (diff) | |
| download | mullvadvpn-4ef27f854d99f154feabf8a04f9ad5241150a315.tar.xz mullvadvpn-4ef27f854d99f154feabf8a04f9ad5241150a315.zip | |
Fix bug if `TEST_PACKAGE` doesn't exist
Diffstat (limited to 'test/scripts')
| -rwxr-xr-x | test/scripts/test-utils.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/scripts/test-utils.sh b/test/scripts/test-utils.sh index 75ad548701..3486483600 100755 --- a/test/scripts/test-utils.sh +++ b/test/scripts/test-utils.sh @@ -50,7 +50,7 @@ function get_package_dir { local package_dir if [[ -n "${PACKAGE_DIR+x}" ]]; then # Resolve the package dir to an absolute path since cargo must be invoked from the test directory - package_dir=$(cd "$PACKAGE_DIR" > /dev/null && pwd) + package_dir=$(realpath "$PACKAGE_DIR") elif [[ ("$(uname -s)" == "Darwin") ]]; then package_dir="$HOME/Library/Caches/mullvad-test/packages" elif [[ ("$(uname -s)" == "Linux") ]]; then |
