Skip to content

Commit fc09123

Browse files
committed
Actually make the tests in the IDE work.
/double facepalm
1 parent 4942a70 commit fc09123

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

java/client/test/org/openqa/selenium/BuckBuild.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,19 @@
2424

2525
import com.google.common.base.Preconditions;
2626
import com.google.common.base.Splitter;
27-
import com.google.common.base.StandardSystemProperty;
2827
import com.google.common.collect.ImmutableList;
2928
import com.google.common.hash.HashCode;
3029
import com.google.common.hash.Hashing;
3130

3231
import org.openqa.selenium.os.CommandLine;
3332
import org.openqa.selenium.testing.InProject;
3433

34+
import java.io.File;
3535
import java.io.IOException;
3636
import java.net.HttpURLConnection;
3737
import java.net.URL;
3838
import java.nio.file.Files;
3939
import java.nio.file.Path;
40-
import java.nio.file.Paths;
4140
import java.util.List;
4241
import java.util.logging.Logger;
4342

@@ -138,7 +137,8 @@ private void downloadBuckPexIfNecessary(ImmutableList.Builder<String> builder)
138137
Path projectRoot = InProject.locate("Rakefile").getParentFile().toPath();
139138
String buckVersion = new String(Files.readAllBytes(projectRoot.resolve(".buckversion"))).trim();
140139

141-
Path pex = Paths.get("buck-out", "crazy-fun", buckVersion, "buck.pex");
140+
File rootOfRepo = InProject.locate("Rakefile").getParentFile();
141+
Path pex = rootOfRepo.toPath().resolve("buck-out/crazy-fun/" + buckVersion + "/buck.pex");
142142

143143
String expectedHash = new String(Files.readAllBytes(projectRoot.resolve(".buckhash"))).trim();
144144
HashCode md5 = Files.exists(pex) ?

0 commit comments

Comments
 (0)