Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: tests/standalone/io/addlatexhash_test.dart

Issue 1890973003: pkg/analyzer: support latest pkg/crypto version (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: nits Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | tests/standalone/io/http_auth_digest_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | tests/standalone/io/http_auth_digest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698