enowars / enochecker_test

Automatically test services/checker using the enochecker API
MIT License
0 stars 4 forks source link

allow specification of tests with pytest -k expression #43

Closed fwc closed 4 months ago

fwc commented 1 year ago

Currently, enochecker allows test specification like this:

$ enochecker_test -p 1234 -a localhost -A "$IP" test_putflag test_getflag

This PR instead allows to specify tests with a pytest keyword expression, like e.g.

$ enochecker_test -p 1234 -a localhost -A "$IP" "not exploit"

Note that this breaks backwards compatibility for the case in which multiple testcases are specified.