Fix tests when CARGO_TARGET_DIR is set.
authorEric Huss <eric@huss.org>
Tue, 15 May 2018 14:52:24 +0000 (07:52 -0700)
committerEric Huss <eric@huss.org>
Tue, 15 May 2018 14:52:24 +0000 (07:52 -0700)
Fixes #5536

tests/testsuite/build_plan.rs

index d11eef1225b8d7c493ef3416f7187955f97bae55..87620aa776d8eb67c808dff24a50ee99a7f6208a 100644 (file)
@@ -23,7 +23,7 @@ fn cargo_build_plan_simple() {
         "invocations": [
             {
                 "args": "{...}",
-                "cwd": "[..][/]target[/]cit[/][..][/]foo",
+                "cwd": "[..][/]cit[/][..][/]foo",
                 "deps": [],
                 "env": "{...}",
                 "kind": "Host",
@@ -93,7 +93,7 @@ fn cargo_build_plan_single_dep() {
         "invocations": [
             {
                 "args": "{...}",
-                "cwd": "[..][/]target[/]cit[/][..][/]foo",
+                "cwd": "[..][/]cit[/][..][/]foo",
                 "deps": [],
                 "env": "{...}",
                 "kind": "Host",
@@ -108,7 +108,7 @@ fn cargo_build_plan_single_dep() {
             },
             {
                 "args": "{...}",
-                "cwd": "[..][/]target[/]cit[/][..][/]foo",
+                "cwd": "[..][/]cit[/][..][/]foo",
                 "deps": [0],
                 "env": "{...}",
                 "kind": "Host",
@@ -160,7 +160,7 @@ fn cargo_build_plan_build_script() {
         "invocations": [
             {
                 "args": "{...}",
-                "cwd": "[..][/]target[/]cit[/][..][/]foo",
+                "cwd": "[..][/]cit[/][..][/]foo",
                 "deps": [],
                 "env": "{...}",
                 "kind": "Host",
@@ -175,7 +175,7 @@ fn cargo_build_plan_build_script() {
             },
             {
                 "args": "{...}",
-                "cwd": "[..][/]target[/]cit[/][..][/]foo",
+                "cwd": "[..][/]cit[/][..][/]foo",
                 "deps": [0],
                 "env": "{...}",
                 "kind": "Host",
@@ -188,7 +188,7 @@ fn cargo_build_plan_build_script() {
             },
             {
                 "args": "{...}",
-                "cwd": "[..][/]target[/]cit[/][..][/]foo",
+                "cwd": "[..][/]cit[/][..][/]foo",
                 "deps": [1],
                 "env": "{...}",
                 "kind": "Host",