Skip to content

Commit b66cb64

Browse files
author
Sam Eagen
committed
Add the GHA run number into the artifact name in the test.
1 parent 5ef6f3c commit b66cb64

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

plugins/tests/tParallelizableBuildSummaryPlugin.m

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ function runningBuildCreatesSummaryArtifactWithExpectedTasks(testCase)
4747

4848
testCase.Runner.run(plan, ["t1", "t2"]);
4949

50-
f = fullfile(testCase.TempFolder, "buildSummary.json");
50+
name = "buildSummary" + getenv("GITHUB_RUN_ID") + ".json";
51+
f = fullfile(testCase.TempFolder, name);
5152
testCase.assertTrue(isfile(f));
5253

5354
s = readstruct(f);
@@ -64,7 +65,8 @@ function summaryArtifactStatusesAreCorrect(testCase)
6465

6566
testCase.Runner.run(plan, ["t1", "t2"]);
6667

67-
f = fullfile(testCase.TempFolder, "buildSummary.json");
68+
name = "buildSummary" + getenv("GITHUB_RUN_ID") + ".json";
69+
f = fullfile(testCase.TempFolder, name);
6870
testCase.assertTrue(isfile(f));
6971

7072
s = readstruct(f);
@@ -84,7 +86,9 @@ function runningBuildCreatesSummaryForTaskGroups(testCase)
8486

8587
testCase.Runner.run(plan, "g:t");
8688

87-
f = fullfile(testCase.TempFolder, "buildSummary.json");
89+
name = "buildSummary" + getenv("GITHUB_RUN_ID") + ".json";
90+
f = fullfile(testCase.TempFolder, name);
91+
8892
testCase.assertTrue(isfile(f));
8993

9094
s = readstruct(f);

0 commit comments

Comments
 (0)