From dfd477568fb5e7ebde8c10289d6adcebbaac08fc Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Fri, 7 Oct 2016 12:05:55 -0400 Subject: [PATCH] Fix test failure by tolerating different line/column numbers. --- tools/tests/compiler-plugins.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/tests/compiler-plugins.js b/tools/tests/compiler-plugins.js index 561513110f..7c8b178c30 100644 --- a/tools/tests/compiler-plugins.js +++ b/tools/tests/compiler-plugins.js @@ -329,8 +329,9 @@ selftest.define("compiler plugins - compiler throws", () => { // XXX This is wrong! The path on disk is packages/local-plugin/plugin.js, but // at some point we switched to the servePath which is based on the *plugin*'s // "package" name. - run.matchErr('packages/compilePrintme/plugin.js:5:1: Error in my ' + - 'registerCompiler callback!'); + run.matchErr( + /packages\/compilePrintme_plugin\.js:\d+:\d+: Error in my registerCompiler callback!/ + ); run.expectExit(1); });