Skip to content

Commit 38f09a8

Browse files
committed
Fix bug if TEST_PACKAGE doesn't exist
1 parent 3f0064f commit 38f09a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/scripts/test-utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function get_package_dir {
5050
local package_dir
5151
if [[ -n "${PACKAGE_DIR+x}" ]]; then
5252
# Resolve the package dir to an absolute path since cargo must be invoked from the test directory
53-
package_dir=$(cd "$PACKAGE_DIR" > /dev/null && pwd)
53+
package_dir=$(realpath "$PACKAGE_DIR")
5454
elif [[ ("$(uname -s)" == "Darwin") ]]; then
5555
package_dir="$HOME/Library/Caches/mullvad-test/packages"
5656
elif [[ ("$(uname -s)" == "Linux") ]]; then

0 commit comments

Comments
 (0)