Actually call the environment.running() func
Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/84280a83 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/84280a83 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/84280a83 Branch: refs/heads/master Commit: 84280a83cbfa449e9c53c9fdbf21f6f6b302b20f Parents: 5044dd4 Author: Thomas Jackson <[email protected]> Authored: Wed Jan 14 15:57:32 2015 -0800 Committer: Thomas Jackson <[email protected]> Committed: Wed Jan 14 15:57:32 2015 -0800 ---------------------------------------------------------------------- tsqa/test_cases.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/84280a83/tsqa/test_cases.py ---------------------------------------------------------------------- diff --git a/tsqa/test_cases.py b/tsqa/test_cases.py index 3fe70af..35319a8 100644 --- a/tsqa/test_cases.py +++ b/tsqa/test_cases.py @@ -35,6 +35,7 @@ class EnvironmentCase(unittest.TestCase): # get an environment cls.environment = cls.getEnv() + # TODO: better... I dont think this output is captured in each test run logging.info('Environment prefix is {0}'.format(cls.environment.layout.prefix)) cfg_dir = os.path.join(cls.environment.layout.prefix, 'etc', 'trafficserver') @@ -82,7 +83,7 @@ class EnvironmentCase(unittest.TestCase): @classmethod def tearDownClass(cls): - if not cls.environment.running: + if not cls.environment.running(): raise Exception('ATS died during the test run') # stop ATS cls.environment.stop()
