Skip to content

Commit 45091d3

Browse files
committed
next.
1 parent 07e114e commit 45091d3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
with:
2323
toit-version: "latest"
2424

25+
- shell: bash
26+
run:
27+
cd tests
28+
toit pkg install
29+
toit find-executable_test.toit || echo "FAIL"
30+
2531
- shell: bash
2632
run: echo $PATH
2733

tests/find-executable_test.toit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ import expect show *
66

77
import host.file
88
import host.pipe
9+
import host.os
910
import system
1011

1112
main:
1213
shell/string := ?
1314
shell-args := ?
15+
16+
print "PATH: $(os.env.get "PATH")"
17+
1418
if system.platform == system.PLATFORM-WINDOWS:
1519
// 'cmd.exe' should always be present on Windows systems.
1620
shell = "cmd"
@@ -21,6 +25,7 @@ main:
2125
shell-args = ["-c", "echo hello"]
2226

2327
path := file.find-executable shell
28+
print "Found executable at: $path"
2429
expect-not-null path
2530

2631
// Run the found executable to verify it works.

0 commit comments

Comments
 (0)