@@ -33,7 +33,7 @@ test("regex matchers are applied to stdout for non-zero exit code", async (t) =>
3333
3434 await t . throwsAsync ( exec . exec ( "node" , testArgs ) , {
3535 instanceOf : Error ,
36- message : "The process 'node' failed with exit code 1" ,
36+ message : / f a i l e d w i t h e x i t c o d e 1 / ,
3737 } ) ;
3838
3939 await t . throwsAsync ( toolrunnerErrorCatcher ( "node" , testArgs , matchers ) , {
@@ -56,7 +56,7 @@ test("regex matchers are applied to stderr for non-zero exit code", async (t) =>
5656
5757 await t . throwsAsync ( exec . exec ( "node" , testArgs ) , {
5858 instanceOf : Error ,
59- message : "The process 'node' failed with exit code 1" ,
59+ message : / f a i l e d w i t h e x i t c o d e 1 / ,
6060 } ) ;
6161
6262 await t . throwsAsync ( toolrunnerErrorCatcher ( "node" , testArgs , matchers ) , {
@@ -81,7 +81,7 @@ test("matcher returns correct error message when multiple matchers defined", asy
8181
8282 await t . throwsAsync ( exec . exec ( "node" , testArgs ) , {
8383 instanceOf : Error ,
84- message : "The process 'node' failed with exit code 1" ,
84+ message : / f a i l e d w i t h e x i t c o d e 1 / ,
8585 } ) ;
8686
8787 await t . throwsAsync ( toolrunnerErrorCatcher ( "node" , testArgs , matchers ) , {
@@ -106,7 +106,7 @@ test("matcher returns first match to regex when multiple matches", async (t) =>
106106
107107 await t . throwsAsync ( exec . exec ( "node" , testArgs ) , {
108108 instanceOf : Error ,
109- message : "The process 'node' failed with exit code 1" ,
109+ message : / f a i l e d w i t h e x i t c o d e 1 / ,
110110 } ) ;
111111
112112 await t . throwsAsync ( toolrunnerErrorCatcher ( "node" , testArgs , matchers ) , {
@@ -133,7 +133,7 @@ test("exit code matchers are applied", async (t) => {
133133
134134 await t . throwsAsync ( exec . exec ( "node" , testArgs ) , {
135135 instanceOf : Error ,
136- message : "The process 'node' failed with exit code 123" ,
136+ message : / f a i l e d w i t h e x i t c o d e 1 2 3 / ,
137137 } ) ;
138138
139139 await t . throwsAsync ( toolrunnerErrorCatcher ( "node" , testArgs , matchers ) , {
0 commit comments