Skip to content

Commit 0827f1b

Browse files
tochhone
authored andcommitted
Fix buggy path on windows when running bintest
1 parent 3c5c2bb commit 0827f1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bintest/mruby-cli.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525
Dir.mktmpdir do |tmp_dir|
2626
Dir.chdir(tmp_dir) do
2727
app_name = "hello_world"
28+
APP_PATH = File.join("mruby/bin/#{app_name}")
2829
Open3.capture2(BIN_PATH, "--setup", app_name)
2930

3031
Dir.chdir(app_name) do
3132
output, status = Open3.capture2("rake compile")
3233
assert_true status.success?, "`rake compile` did not exit cleanly"
3334

34-
output, status = Open3.capture2("mruby/bin/#{app_name}")
35+
output, status = Open3.capture2(APP_PATH)
3536
assert_true status.success?, "`#{app_name}` did not exit cleanly"
3637
assert_include output, "Hello World"
3738

0 commit comments

Comments
 (0)