File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -6,11 +6,15 @@ import expect show *
66
77import host.file
88import host.pipe
9+ import host.os
910import system
1011
1112main :
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"
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.
You can’t perform that action at this time.
0 commit comments