From ba2439b174a3d7ba7313445c6d7a954ade8f2e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Tue, 21 Feb 2017 13:47:10 +0100 Subject: [PATCH] Test: Stop publishing non-existing values in get_state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We removed several classes in the history, let's update the get_state to remove methods, that are not used anymore. Note that some of the variables were related to Avocado-vt, anyway the usage of `get_state` from Avocado depends only on it's values. If Avocado-vt needs to publish it's internal values, it can override this method and do so, anyway at this point this is not necessary. Signed-off-by: Lukáš Doktor --- avocado/core/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avocado/core/test.py b/avocado/core/test.py index c0393f1a..48807af4 100644 --- a/avocado/core/test.py +++ b/avocado/core/test.py @@ -443,8 +443,8 @@ class Test(unittest.TestCase): """ if self.running and self.time_start: self._update_time_elapsed() - preserve_attr = ['basedir', 'debugdir', 'depsdir', 'fail_reason', - 'logdir', 'logfile', 'name', 'resultsdir', 'srcdir', + preserve_attr = ['basedir', 'fail_reason', + 'logdir', 'logfile', 'name', 'srcdir', 'status', 'time_elapsed', 'traceback', 'workdir', 'whiteboard', 'time_start', 'time_end', 'running', 'paused', 'paused_msg', -- GitLab