diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-11-15 20:07:40 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-16 12:07:40 +0800 |
commit | 48bf4062e4359674e1a417100eb76a6347e77fc1 (patch) | |
tree | e52f2c6c63a2afcdf2d5efc059e43c7f55f2c653 /tools/unit_tests.py | |
parent | 9b702da9e53b6efbc7a333380bcfb3d57733730e (diff) |
First pass at running subprocesses (#1156)
Diffstat (limited to 'tools/unit_tests.py')
-rwxr-xr-x | tools/unit_tests.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/unit_tests.py b/tools/unit_tests.py index 9682aec89..47dfcf886 100755 --- a/tools/unit_tests.py +++ b/tools/unit_tests.py @@ -41,10 +41,12 @@ def run_unit_test(deno_exe, permStr, flags=[]): # tests by the special string. permW0N0 means allow-write but not allow-net. # See js/test_util.ts for more details. def unit_tests(deno_exe): - run_unit_test(deno_exe, "permW0N0E0") - run_unit_test(deno_exe, "permW1N0E0", ["--allow-write"]) - run_unit_test(deno_exe, "permW0N1E0", ["--allow-net"]) - run_unit_test(deno_exe, "permW0N0E1", ["--allow-env"]) + run_unit_test(deno_exe, "permW0N0E0R0") + run_unit_test(deno_exe, "permW1N0E0R0", ["--allow-write"]) + run_unit_test(deno_exe, "permW0N1E0R0", ["--allow-net"]) + run_unit_test(deno_exe, "permW0N0E1R0", ["--allow-env"]) + run_unit_test(deno_exe, "permW0N0E0R1", ["--allow-run"]) + run_unit_test(deno_exe, "permW1N0E0R1", ["--allow-run", "--allow-write"]) # TODO We might accidentally miss some. We should be smarter about which we # run. Maybe we can use the "filtered out" number to check this. |