diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-08-20 09:25:32 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-08-20 12:22:29 +0200 |
commit | f48fce82d15a274d6fe1a8214f35b48d08a7d9dd (patch) | |
tree | 1c497058c04c77f19264b0417d339d4c12f48c29 | |
parent | 58665932c2c910cedac2a135e5b84a5ec4b5946e (diff) |
Allow defining CI_LOOP via env
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>
-rw-r--r-- | functest/utils/env.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functest/utils/env.py b/functest/utils/env.py index 2fb766d3..d7b396ea 100644 --- a/functest/utils/env.py +++ b/functest/utils/env.py @@ -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: |