From 23a5e53247291d071a4549a4e56f7c36422d2004 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 2 Feb 2022 20:30:43 +0100 Subject: [PATCH] tests: Print $PWD if resolving fails Seems to be a macOS issue --- tests/checks/path.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/checks/path.fish b/tests/checks/path.fish index bd8564de3..a0f4d894f 100644 --- a/tests/checks/path.fish +++ b/tests/checks/path.fish @@ -115,6 +115,7 @@ path resolve bin//sh | string match -r -- 'bin/bash$' set -l path (path resolve foo/bar) string match -rq "^"(string escape --style=regex -- $PWD)'/' -- $path and echo It matches pwd! +or echo pwd is \'$PWD\' resolved path is \'$path\' # CHECK: It matches pwd! string replace -r "^"(string escape --style=regex -- $PWD)'/' "" -- $path # CHECK: foo/bar