Commit 1636f3e
authored
fix: clear build cache in sync build-in-source test tearDown for reliable reruns (#8745)
The tearDown in TestSyncInfra_BuildInSource_Makefile and
TestSyncCode_BuildInSource_Makefile deletes the Makefile-created marker
files but does not invalidate the SAM build cache inside the temp test
data directory. On pytest reruns, SAM finds a valid cache and skips
re-running the Makefile, so the marker files are never recreated and
the file-existence assertion fails.
Clear .aws-sam inside test_data_path in tearDown so the build cache is
invalidated and the Makefile re-executes on retries.1 parent e7de444 commit 1636f3e
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
| |||
0 commit comments