We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e93ebc commit 4f2c1edCopy full SHA for 4f2c1ed
tools/e2e/runIndividualE2EFiles.ts
@@ -26,10 +26,31 @@ for (const file of e2eTests) {
26
}
27
28
29
+const failed: string[] = [];
30
+
31
for (const [file, task] of tasks.entries()) {
32
console.log("::group::Testing: " + file);
- execSync(task, {
- stdio: "inherit",
33
- });
+ try {
34
+ execSync(task, {
35
+ stdio: "inherit",
36
+ });
37
+ } catch {
38
+ console.error("Task failed - retrying");
39
40
41
42
43
+ } catch (e) {
44
+ console.error("Still failed, moving on");
45
+ failed.push(file);
46
+ }
47
48
console.log("::endgroup::");
49
50
51
+if (failed.length > 0) {
52
+ throw new Error(
53
+ "At least one task failed (even on retry):" +
54
+ failed.map((file) => `\n - ${file}`)
55
+ );
56
+}
0 commit comments