]>
dreyeck.freedombox.rocks Git - topic-maps.git/blob - reports/slice-22s/collect.py
2 """Configure the existing 22D offline collector; no second test executor."""
5 from pathlib
import Path
6 sys
.dont_write_bytecode
= True
7 ROOT
= Path(__file__
).resolve().parents
[2]
10 spec
= importlib
.util
.spec_from_file_location('existing_collector', ROOT
/ 'scripts/validate-slice-22d.py')
11 m
= importlib
.util
.module_from_spec(spec
)
12 spec
.loader
.exec_module(m
)
13 m
.TOOLS
= ROOT
/ 'reports/slice-22s'
14 m
.EXECUTION_FILES
= {str(p
.relative_to(ROOT
)) for folder
in ['src', 'tests']
15 for p
in (ROOT
/ folder
).rglob('*.lisp')} |
{
16 'topic-maps.asd', 'scripts/validate-slice-22d.py',
17 'reports/slice-22s/failure-controls.lisp', 'reports/slice-22s/collect.py'}
18 out
.mkdir(parents
=True, exist_ok
=True)
19 m
.collect(out
, ROOT
/ 'reports/slice-22d/baseline')
21 if __name__
== '__main__':
22 out
= Path(sys
.argv
[1]).resolve()
23 assert not out
.is_relative_to(ROOT
)