Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/native_rtv_variant_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ def draw(fmt=None):
key = G.fnv(line.encode('ascii'))
assert (cache / f'req_{key:016x}.rtv').read_bytes() == line.encode('ascii'), line
variants.append((key, line, types, target))
assert sorted(p.name for p in cache.iterdir()) == sorted(
# The first request also writes the stand-in's revision.txt; it is not a request.
assert sorted(p.name for p in cache.iterdir() if p.name != 'revision.txt') == sorted(
[f'req_{base:016x}{e}' for e in ('.a', '.b', '.root')] + [f'req_{key:016x}.rtv' for key, *_ in variants])

check_published(cli, sdk, work / 'frontend', cache, base, variants)
Expand Down
4 changes: 3 additions & 1 deletion tests/startup_compute_dispatch_native_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def main(consumer, dxc_dir, adapter):
refused = lines(result, 'refused: ')
assert got == untouched, 'a Dispatch with no descriptor at table byte 32 wrote the output'
assert len(refused) == 1 and 'no translation' not in refused[0], result.stderr[-3000:]
published = sorted(p.name for p in cache.iterdir() if not p.name.startswith('req_') and p.name != 'native')
# The first request writes revision.txt; it is cache metadata, not a publication.
published = sorted(p.name for p in cache.iterdir()
if not p.name.startswith('req_') and p.name not in ('native', 'revision.txt'))
assert not published, f'the native route left {published} in the cache'

(directory / 'program').write_bytes(case_a)
Expand Down
Loading