mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Add execPath function (#1743)
This commit is contained in:
parent
1d7c74e9b5
commit
4dc4329e27
6 changed files with 26 additions and 4 deletions
|
@ -38,6 +38,12 @@ def test_no_color(deno_exe):
|
|||
print green_ok()
|
||||
|
||||
|
||||
def exec_path_test(deno_exe):
|
||||
cmd = [deno_exe, "tests/exec_path.ts"]
|
||||
output = run_output(cmd)
|
||||
assert deno_exe in output.strip()
|
||||
|
||||
|
||||
def main(argv):
|
||||
if len(argv) == 2:
|
||||
build_dir = sys.argv[1]
|
||||
|
@ -59,6 +65,8 @@ def main(argv):
|
|||
deno_exe = os.path.join(build_dir, "deno" + executable_suffix)
|
||||
check_exists(deno_exe)
|
||||
|
||||
exec_path_test(deno_exe)
|
||||
|
||||
# Internal tools testing
|
||||
run([
|
||||
"node", "./node_modules/.bin/ts-node", "--project",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue