From: Cédric Ollivier Date: Sun, 20 Aug 2017 07:25:32 +0000 (+0200) Subject: Allow defining CI_LOOP via env X-Git-Tag: opnfv-5.0.RC1~186 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F39667%2F1;p=functest.git 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 --- diff --git a/functest/utils/env.py b/functest/utils/env.py index 2fb766d32..d7b396eaa 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: