mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-23 23:12:04 +03:00
Merge pull request #6467 from urbit/dr/clean-up-test-thread
ted/test.hoon: repair vestigial select-by-prefix feature
This commit is contained in:
commit
5661bfed74
@ -26,13 +26,6 @@
|
|||||||
&+[leaf+"OK {name}"]~
|
&+[leaf+"OK {name}"]~
|
||||||
|+(flop `tang`[leaf+"FAILED {name}" p.run])
|
|+(flop `tang`[leaf+"FAILED {name}" p.run])
|
||||||
==
|
==
|
||||||
:: +filter-tests-by-prefix: TODO document
|
|
||||||
::
|
|
||||||
++ filter-tests-by-prefix
|
|
||||||
|= [prefix=path tests=(list test)]
|
|
||||||
^+ tests
|
|
||||||
=/ prefix-length=@ud (lent prefix)
|
|
||||||
(skim tests |=([p=path *] =(prefix (scag prefix-length p))))
|
|
||||||
:: +resolve-test-paths: add test names to file paths to form full identifiers
|
:: +resolve-test-paths: add test names to file paths to form full identifiers
|
||||||
::
|
::
|
||||||
++ resolve-test-paths
|
++ resolve-test-paths
|
||||||
@ -130,15 +123,11 @@
|
|||||||
gather-tests(fiz t.fiz, build-ok |)
|
gather-tests(fiz t.fiz, build-ok |)
|
||||||
~> %slog.0^leaf+"built {(spud s.beam.i.fiz)}"
|
~> %slog.0^leaf+"built {(spud s.beam.i.fiz)}"
|
||||||
=/ arms=(list test-arm) (get-test-arms u.cor)
|
=/ arms=(list test-arm) (get-test-arms u.cor)
|
||||||
::
|
:: if test path specified an arm prefix, filter arms to match
|
||||||
:: XX this logic appears to be vestigial
|
|
||||||
::
|
|
||||||
=? arms ?=(^ test.i.fiz)
|
=? arms ?=(^ test.i.fiz)
|
||||||
|- ^+ arms
|
%+ skim arms
|
||||||
?~ arms ~|(no-test-arm+i.fiz !!)
|
|= test-arm
|
||||||
?: =(name.i.arms u.test.i.fiz)
|
=((end [3 (met 3 u.test.i.fiz)] name) u.test.i.fiz)
|
||||||
[i.arms]~
|
|
||||||
$(arms t.arms)
|
|
||||||
=. test-arms (~(put by test-arms) (snip s.beam.i.fiz) arms)
|
=. test-arms (~(put by test-arms) (snip s.beam.i.fiz) arms)
|
||||||
gather-tests(fiz t.fiz)
|
gather-tests(fiz t.fiz)
|
||||||
%- pure:m !> ^= ok
|
%- pure:m !> ^= ok
|
||||||
|
Loading…
Reference in New Issue
Block a user