aboutsummaryrefslogtreecommitdiffstats
path: root/pytest.ini
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2019-01-03 23:43:56 +0100
committerAnders Broman <a.broman58@gmail.com>2019-01-05 06:46:54 +0000
commit2e411dba93bf2ceecf3dd201b2d100864229ce02 (patch)
treed6fc878b4b9962d6ee364eca05d32142c2e1346f /pytest.ini
parentf100f7f122885418dfd4d65a062632c6bbdd20c7 (diff)
test: allow running pytest without specifying the tests directory
This allows `pytest` to be executed from the top-level source or build directory (or any other directory below). Change-Id: Ib7af2ea2aaf01319d6839d2dc67228fbb5a7bc34 Reviewed-on: https://code.wireshark.org/review/31370 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'pytest.ini')
-rw-r--r--pytest.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/pytest.ini b/pytest.ini
new file mode 100644
index 0000000000..b12b8b0f8e
--- /dev/null
+++ b/pytest.ini
@@ -0,0 +1,4 @@
+[pytest]
+testpaths = test
+python_files = suite_*.py group_*.py
+addopts = -ra