From bfaf5432b5f83f82321dc7c9ea145cb3c9750864 Mon Sep 17 00:00:00 2001 From: vrde Date: Tue, 28 Aug 2018 16:45:31 +0200 Subject: [PATCH] Problem: make unit-test-watch loops forever Solution: BigchainDB by default writes logs in the same directory it is run. The `looponfail` feature provided by pytest waits for changes in the current directory, so it is continuously triggered. This patch tells pytest to only watch the `bigchaindb` and `tests` directories. --- pytest.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/pytest.ini b/pytest.ini index e604b0b9..006bc2bc 100644 --- a/pytest.ini +++ b/pytest.ini @@ -2,3 +2,4 @@ testpaths = tests/ norecursedirs = .* *.egg *.egg-info env* devenv* docs addopts = -m tendermint +looponfailroots = bigchaindb tests