From: Jeremy Stanley Date: Mon, 31 Dec 2018 18:41:49 +0000 (+0000) Subject: Rename debug testenv to demo and use sample config X-Git-Tag: 0.0.1~38 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=21ec43271ef1ad03f33ca63218b6313f2d305dbe;p=mudpy.git 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). --- 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