tests: Print $PWD if resolving fails

Seems to be a macOS issue
This commit is contained in:
Fabian Homborg 2022-02-02 20:30:43 +01:00
parent d13ba046b0
commit 23a5e53247

View file

@ -115,6 +115,7 @@ path resolve bin//sh | string match -r -- 'bin/bash$'
set -l path (path resolve foo/bar) set -l path (path resolve foo/bar)
string match -rq "^"(string escape --style=regex -- $PWD)'/' -- $path string match -rq "^"(string escape --style=regex -- $PWD)'/' -- $path
and echo It matches pwd! and echo It matches pwd!
or echo pwd is \'$PWD\' resolved path is \'$path\'
# CHECK: It matches pwd! # CHECK: It matches pwd!
string replace -r "^"(string escape --style=regex -- $PWD)'/' "" -- $path string replace -r "^"(string escape --style=regex -- $PWD)'/' "" -- $path
# CHECK: foo/bar # CHECK: foo/bar