Skip to content

Commit

Permalink
gw0 actually is doing the db sync, so it needs to have write access. …
Browse files Browse the repository at this point in the history
…Fixes sqlite3.OperationalError: attempt to write a readonly database
  • Loading branch information
tarpas committed Nov 3, 2023
1 parent 14b527a commit 83a3352
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testmon/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""PYTEST_DONT_REWRITE"""
VERSION = "2.1.0dev1"
VERSION = "2.1.0.dev2"
3 changes: 2 additions & 1 deletion testmon/pytest_testmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def init_testmon_data(config):
database=rpc_proxy,
environment=environment,
system_packages=system_packages,
readonly=parallelism_status(config) == "worker",
readonly=parallelism_status(config) == "worker"
and config.workerinput["workerid"] != "gw0",
)
testmon_data.determine_stable(bool(rpc_proxy))
config.testmon_data = testmon_data
Expand Down

0 comments on commit 83a3352

Please sign in to comment.