fix: normalize Deno.execPath (#2598)

This commit is contained in:
Bartek Iwańczuk 2019-06-30 19:32:24 +02:00 committed by Ryan Dahl
parent 1068b4848c
commit 9d18f97327
2 changed files with 10 additions and 2 deletions

View file

@ -55,8 +55,11 @@ class TestTarget(DenoTestCase):
assert result.out.strip() == "noColor false"
def test_exec_path(self):
cmd = [self.deno_exe, "run", "tests/exec_path.ts"]
cmd = [self.deno_exe, "run", "--allow-run", "tests/exec_path.ts"]
result = run_output(cmd, quiet=True)
print "exec_path", result.code
print result.out
print result.err
assert self.deno_exe in result.out.strip()
self.assertEqual(result.code, 0)