From 5bf66c57d69030829689ad4831dbcdc9ceec95eb Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 23 May 2017 17:40:23 +0200 Subject: trial.py: Remove accidental double creation of file This file is already created in run_suites(). Creating it in here too makes a new file name()_2.xml created and populated instead of the original name().xml one. Change-Id: Ibec14a1ef5fd029aa37ce666d00236bb872d636e --- selftest/trial_test.ok | 2 +- src/osmo_gsm_tester/trial.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/selftest/trial_test.ok b/selftest/trial_test.ok index 7434a10..6ad39a9 100644 --- a/selftest/trial_test.ok +++ b/selftest/trial_test.ok @@ -4,7 +4,7 @@ [TMP]/third - fetch trial dirs in order first -['last_run', 'run.[TIMESTAMP]', 'taken'] +['taken'] second third - no more trial dirs left diff --git a/src/osmo_gsm_tester/trial.py b/src/osmo_gsm_tester/trial.py index 67746f7..3eb0c67 100644 --- a/src/osmo_gsm_tester/trial.py +++ b/src/osmo_gsm_tester/trial.py @@ -63,7 +63,6 @@ class Trial(log.Origin): self.inst_dir = util.Dir(self.dir.child('inst')) self.bin_tars = [] self.suites = [] - self.junit_path = self.get_run_dir().new_file(self.name()+'.xml') self.status = Trial.UNKNOWN def __repr__(self): -- cgit v1.2.3