There are a couple unit tests that seem to be fundamentally unable to
be used properly if they are run as part of a teuthology process, as
opposed to directly inside py.test. This fixture makes it easy to skip
those tests in such an environment without skipping them elsewhere.
Signed-off-by: Zack Cerza <zack@redhat.com>
+import os
+import pytest
+import sys
+
+skipif_teuthology_process = pytest.mark.skipif(
+ os.path.basename(sys.argv[0]) == "teuthology",
+ reason="Skipped because this test cannot pass when run in a teuthology " \
+ "process (as opposed to py.test)"
+)
\ No newline at end of file