Index: tests/standalone/io/addlatexhash_test.dart |
diff --git a/tests/standalone/io/addlatexhash_test.dart b/tests/standalone/io/addlatexhash_test.dart |
index 1f189ab45f7097b836458e852f0ada8303c6f650..582b75adfb3887b37f25483795e29495c39449cb 100755 |
--- a/tests/standalone/io/addlatexhash_test.dart |
+++ b/tests/standalone/io/addlatexhash_test.dart |
@@ -80,12 +80,16 @@ testSameHash(String tmpDirPath) { |
if (dartExecutable == "") throw "dart executable not available"; |
// actions to take |
- runAddHash() => |
- Process.runSync(dartExecutable, |
- [path.join(dartRootPath, "tools", "addlatexhash.dart"), |
- tmpPar8timesPath, |
- hashPath, |
- listPath]); |
+ runAddHash() { |
+ var args = [ |
+ '--package-root=${Platform.packageRoot}', |
+ path.join(dartRootPath, "tools", "addlatexhash.dart"), |
+ tmpPar8timesPath, |
+ hashPath, |
+ listPath |
+ ]; |
+ return Process.runSync(dartExecutable, args); |
+ } |
// perform test |
new File(par8timesPath).copySync(tmpPar8timesPath); |
@@ -149,12 +153,16 @@ testSameDVI(String tmpDirPath) { |
runLatex(fileName,workingDirectory) => |
Process.runSync("latex", [fileName], workingDirectory: workingDirectory); |
- runAddHash() => |
- Process.runSync(dartExecutable, |
- [path.join(dartRootPath, "tools", "addlatexhash.dart"), |
- tmpSpecPath, |
- hashPath, |
- listPath]); |
+ runAddHash() { |
+ var args = [ |
+ '--package-root=${Platform.packageRoot}', |
+ path.join(dartRootPath, "tools", "addlatexhash.dart"), |
+ tmpSpecPath, |
+ hashPath, |
+ listPath |
+ ]; |
+ return Process.runSync(dartExecutable, args); |
+ } |
runDvi2tty(dviFile) => |
Process.runSync("dvi2tty", [dviFile], workingDirectory: tmpDirPath); |