Skip to content

Commit a661302

Browse files
jmmartinezDavid Salinas
authored andcommitted
[Cache][SPIRV] Fix flacky test... again
The underlying issue was that I forgot to clean the cache directory before running the test. So the test ended up running sometimes on a dirty cache yielding bad fails. Since the code is only running a single comgr action that only converts spirv->bc, the contents of the cache should be 2 files: * the bitcode * the cache timestamp
1 parent 84c7a38 commit a661302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

amd/comgr/test-lit/spirv-translator-cached.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
// RUN: export AMD_COMGR_CACHE=1
1313
// RUN: AMD_COMGR_CACHE_DIR=%t.cache spirv-translator %t.spv -o %t.translated.bc
1414
// RUN: COUNT=$(ls "%t.cache" | wc -l)
15-
// RUN: [ 3 -eq $COUNT ]
15+
// RUN: [ 2 -eq $COUNT ]
1616

1717
// COM: Run again and check that the cache contents haven't changed
1818
// RUN: AMD_COMGR_CACHE_DIR=%t.cache spirv-translator %t.spv -o %t.translated.again.bc
1919
// RUN: COUNT=$(ls "%t.cache" | wc -l)
20-
// RUN: [ 3 -eq $COUNT ]
20+
// RUN: [ 2 -eq $COUNT ]
2121

2222
// COM: Run again and check that the cache contents haven't changed
2323
// RUN: AMD_COMGR_CACHE_DIR=%t.cache spirv-translator %t.spv -o %t.translated.again.bc

0 commit comments

Comments
 (0)