Skip to content

Commit

Permalink
Tolerate missing PWD var (#138)
Browse files Browse the repository at this point in the history
Tolerate missing PWD in 010_prelude.eu
  • Loading branch information
gmorpheme authored Apr 26, 2021
1 parent 656cadf commit 23fc62d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion harness/test/010_prelude.eu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tests: {
}

environment: {
pwd: io.env lookup(:PWD)
pwd: io.env lookup-or(:PWD, "/")
launch-time: io.epoch-time

pass: [ pwd str.matches?(".*/.*")
Expand Down
2 changes: 1 addition & 1 deletion harness/test/019_env.eu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# requires prelude

'~': io.env.HOME
pwd: io.env.PWD
lang: io.env.LANG

RESULT: if((io.env lookup-or(:HOME, "~")) != "~", :PASS, :FAIL)

0 comments on commit 23fc62d

Please sign in to comment.