Closed thresheek closed 2 months ago
Hmm, I guess that test should be dependant on njs...
Something like this...
diff --git ./test/test_routing.py ./test/test_routing.py
index c419779a..ce323277 100644
--- ./test/test_routing.py
+++ ./test/test_routing.py
@@ -2057,6 +2057,9 @@ def test_routes_match_if():
# njs
+ if not option.available['modules']['njs']:
+ return
+
set_if('`${args.foo == \'1\'}`')
assert client.get(url='/foo_1?foo=1')['status'] == 200
assert client.get(url='/foo_2?foo=2')['status'] == 404
Something like this...
diff --git ./test/test_routing.py ./test/test_routing.py index c419779a..ce323277 100644 --- ./test/test_routing.py +++ ./test/test_routing.py @@ -2057,6 +2057,9 @@ def test_routes_match_if(): # njs + if not option.available['modules']['njs']: + return + set_if('`${args.foo == \'1\'}`') assert client.get(url='/foo_1?foo=1')['status'] == 200 assert client.get(url='/foo_2?foo=2')['status'] == 404
Good fixing, thanks.
Thanks, that patch seems to work for me too, as the tests are now skipped.
When built without njs, the test suite fails:
The snippet is from Fedora 39, but I believe it happens everywhere when built like:
./configure && ./configure python && make && make python