From 2e411dba93bf2ceecf3dd201b2d100864229ce02 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 3 Jan 2019 23:43:56 +0100 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- pytest.ini | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pytest.ini (limited to 'pytest.ini') 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 -- cgit v1.2.3