ifwait: don't run on load if in test harness

This commit is contained in:
Daniel Barlow
2024-03-05 17:56:59 +00:00
parent 38ed91f641
commit 0787807a7f
2 changed files with 17 additions and 10 deletions

View File

@@ -11,6 +11,8 @@
(tset package.loaded :anoia.nl { :events events })
(set _G.arg (doto ["-v" "dummy0" "up"] (tset 0 "ifwait")))
(set _G.arg (doto ["-v" "dummy0" "up"] (tset 0 "test")))
(fennel.dofile "ifwait.fnl" { :correlate true })
(local ifwait (require :ifwait))
(ifwait.run)