]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
set an env variable that tells us we are testing 31/head
authorAlfredo Deza <adeza@redhat.com>
Fri, 19 Jun 2015 19:56:57 +0000 (15:56 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 19 Jun 2015 19:56:57 +0000 (15:56 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw_agent/tests/conftest.py

index 8e9caf62897f81ad24e8033d0e484c265bdb90fe..f0ef3b5f06d580ffec93bfd81e30137808061f17 100644 (file)
@@ -1,8 +1,13 @@
 import logging
 import sys
+import os
 
-# this console logging configuration is basically just to be able to see output in
-# tests, and this file gets executed by py.test when it runs, so we get that for free.
+# set an environ variable that tells us that we are really testing
+os.environ['PYTEST'] = '1'
+
+# this console logging configuration is basically just to be able to see output
+# in tests, and this file gets executed by py.test when it runs, so we get that
+# for free.
 
 # Console Logger
 sh = logging.StreamHandler()