diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-05 15:53:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 15:53:21 +0100 |
commit | 791119d4af1066b20fa2b5bf8fc82d04d843d51d (patch) | |
tree | 94890756f4380fb2c1d8abd92af66128533a1535 /test_util/src/lib.rs | |
parent | e7cfd90b0f72874aa1535a382df32dce28bd587a (diff) |
build: rewrite tools/ scripts to deno (#8247)
This commit rewrites scripts in "tools/" directory
to use Deno instead of Python. In return it allows
to remove huge number of Python packages in "third_party/".
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r-- | test_util/src/lib.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 366f8b6ba..97a2ed334 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -776,26 +776,6 @@ pub fn deno_cmd() -> Command { c } -pub fn run_python_script(script: &str) { - let deno_dir = new_deno_dir(); - let output = Command::new("python") - .env("DENO_DIR", deno_dir.path()) - .current_dir(root_path()) - .arg(script) - .arg(format!("--build-dir={}", target_dir().display())) - .arg(format!("--executable={}", deno_exe_path().display())) - .output() - .expect("failed to spawn script"); - if !output.status.success() { - let stdout = String::from_utf8(output.stdout).unwrap(); - let stderr = String::from_utf8(output.stderr).unwrap(); - panic!( - "{} executed with failing error code\n{}{}", - script, stdout, stderr - ); - } -} - pub fn run_powershell_script_file( script_file_path: &str, args: Vec<&str>, |