Browse Source

Use absolute paths and set PATH for experiments

dhasenan 3 years ago
parent
commit
37f752b014
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      source/dubautotester/dmd.d

+ 3
- 2
source/dubautotester/dmd.d View File

@@ -93,7 +93,8 @@ private string download(string release, Config config)
93 93
             }
94 94
             infof("experiment %s has dmd at %s", release, expdmd);
95 95
             // This will use the matching druntime / phobos and the system dub.
96
-            return experiment;
96
+            env["PATH"] = experiment ~ ":" ~ environment["PATH"];
97
+            return experiment.absolutePath;
97 98
         }
98 99
         else
99 100
         {
@@ -138,5 +139,5 @@ private string download(string release, Config config)
138 139
         }
139 140
     }
140 141
     env["PATH"] = binDir ~ ":" ~ environment["PATH"];
141
-    return binDir;
142
+    return binDir.absolutePath;
142 143
 }