Allow defining CI_LOOP via env 67/39667/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 20 Aug 2017 07:25:32 +0000 (09:25 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 20 Aug 2017 10:22:29 +0000 (12:22 +0200)
CI_LOOP is more human-readable than BUILD_TAG and could be set by env.
Weekly is still the default value even if it can be considered than
daily is more relevant.

Change-Id: Ia8e370fe0f967ba2c83d0212f8e045d815b4ddb3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/utils/env.py

index 2fb766d..d7b396e 100644 (file)
@@ -32,7 +32,8 @@ class Environment(object):
             if k not in os.environ:
                 self.__setattr__(k, v)
         self._set_ci_run()
-        self._set_ci_loop()
+        if 'CI_LOOP' not in os.environ:
+            self._set_ci_loop()
 
     def _set_ci_run(self):
         if self.BUILD_TAG: