From d1c194bdf6925e6a8ee0d51f345f0c5d45e5fa35 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Sat, 12 Oct 2019 01:47:44 +0200 Subject: [PATCH] Enable verbose mode in bindings/pytest.py Support 'pytest.py -v to show more details. --- bindings/pytest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/pytest.py b/bindings/pytest.py index 3d7b4beb8..50d3ac320 100644 --- a/bindings/pytest.py +++ b/bindings/pytest.py @@ -10,13 +10,13 @@ import sys import Hamlib -def StartUp(): +def StartUp(verbose): """Simple script to test the Hamlib.py module with Python2.""" print "%s: Python %s; %s\n" \ % (sys.argv[0], sys.version.split()[0], Hamlib.cvar.hamlib_version) - Hamlib.rig_set_debug(Hamlib.RIG_DEBUG_NONE) + Hamlib.rig_set_debug([Hamlib.RIG_DEBUG_NONE, Hamlib.RIG_DEBUG_VERBOSE][verbose]) # Init RIG_MODEL_DUMMY my_rig = Hamlib.Rig(Hamlib.RIG_MODEL_DUMMY) @@ -123,4 +123,4 @@ def StartUp(): if __name__ == '__main__': - StartUp() + StartUp([0,1]["-v" in sys.argv])