瀏覽代碼

Merge pull request #697 from aya-rs/log-env-too

integration-test: Remove RUSTC from cargo-in-cargo
ajwerner 1 年之前
父節點
當前提交
1bc9a1ad04
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      test/integration-test/build.rs

+ 4 - 2
test/integration-test/build.rs

@@ -147,8 +147,10 @@ fn main() {
         ]);
 
         // Workaround to make sure that the rust-toolchain.toml is respected.
-        cmd.env_remove("RUSTUP_TOOLCHAIN")
-            .current_dir(integration_ebpf_dir);
+        for key in ["RUSTUP_TOOLCHAIN", "RUSTC"] {
+            cmd.env_remove(key);
+        }
+        cmd.current_dir(integration_ebpf_dir);
 
         // Workaround for https://github.com/rust-lang/cargo/issues/6412 where cargo flocks itself.
         let ebpf_target_dir = out_dir.join("integration-ebpf");