import pytest

class MenderTesting(object):
    slow = pytest.mark.skipif(not pytest.config.getoption("--runslow"), reason="need --runslow option to run")
    fast = pytest.mark.skipif(not pytest.config.getoption("--runfast"), reason="need --runfast option to run")
    nightly = pytest.mark.skipif(not pytest.config.getoption("--runnightly"), reason="need --runnightly option to run")

@@ -49,181 +49,882 @@
 slow
- = pytest.mark.skipif(not pytest.config.getoption(%22--runslow%22), reason=%22need --runslow option to run%22)%0A    fast = pytest.mark.skipif(not pytest.config.getoption(%22--runfast%22)
+_cond = False%0A    fast_cond = False%0A    nightly_cond = False%0A%0A    slow = None%0A    fast = None%0A    nightly = None%0A%0Aif pytest.config.getoption(%22--runslow%22):%0A    MenderTesting.slow_cond = True%0Aelse:%0A    MenderTesting.slow_cond = False%0A%0Aif pytest.config.getoption(%22--runfast%22):%0A    MenderTesting.fast_cond = True%0Aelse:%0A    MenderTesting.fast_cond = False%0A%0Aif pytest.config.getoption(%22--runnightly%22):%0A    MenderTesting.nightly_cond = True%0Aelse:%0A    MenderTesting.nightly_cond = False%0A%0Aif not MenderTesting.slow_cond and not MenderTesting.fast_cond and not MenderTesting.nightly_cond:%0A    # Default to running everything but nightly.%0A    MenderTesting.slow_cond = True%0A    MenderTesting.fast_cond = True%0A%0AMenderTesting.slow = pytest.mark.skipif(not MenderTesting.slow_cond, reason=%22need --runslow option to run%22)%0AMenderTesting.fast = pytest.mark.skipif(not MenderTesting.fast_cond
 , re
@@ -960,20 +960,30 @@
 o run%22)%0A
-    
+MenderTesting.
 nightly 
@@ -1011,47 +1011,34 @@
 not 
-pytest.config.getoption(%22--run
+MenderTesting.
 nightly
-%22)
+_cond
 , re

Fix no tests running when not passing any options.