From 21ec43271ef1ad03f33ca63218b6313f2d305dbe Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 31 Dec 2018 18:41:49 +0000 Subject: [PATCH] Rename debug testenv to demo and use sample config Switch the tox testenv name for invoking the daemon to demo, and also switch it to implicitly using the default sample configuration in etc/mudpy.yaml rather than explicitly using the daemon config from the test fixtures. This makes it a little more friendly for developers and/or first-time users who want to try things out since `tox -e demo` will get them the log streaming to stdout and the process bound to the invoking terminal where they can terminate it with a simple sigint. For those who want to use a different configuration, it can be passed with a command-line argument, like `tox -e demo mudpy/tests/fixtures/test_daemon.yaml` (as an example to replicate the old "debug" behavior). --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 7540510..83a583c 100644 --- a/tox.ini +++ b/tox.ini @@ -17,8 +17,8 @@ setenv = deps = -r{toxinidir}/test-requirements.txt commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml -[testenv:debug] -commands = mudpy mudpy/tests/fixtures/test_daemon.yaml +[testenv:demo] +commands = mudpy {posargs} [testenv:dist] whitelist_externals = rm -- 2.11.0