From 0b5c20b5892466c667634b33fbf4639016f949cf Mon Sep 17 00:00:00 2001 From: Fabio Tranchitella Date: Tue, 15 Jan 2008 15:06:01 +0000 Subject: [PATCH] You can now configure the path for the HeidiResult file. --- britney.conf | 1 + britney.py | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/britney.conf b/britney.conf index 4934c00..bd4c228 100644 --- a/britney.conf +++ b/britney.conf @@ -9,6 +9,7 @@ UNSTABLE = /srv/ftp.debian.org/testing/data/unstable NONINST_STATUS = /srv/ftp.debian.org/testing/data/non-installable-status EXCUSES_OUTPUT = /srv/ftp.debian.org/testing/output/excuses.html UPGRADE_OUTPUT = /srv/ftp.debian.org/testing/output/output.txt +HEIDI_OUTPUT = /srv/ftp.debian.org/testing/output/HeidiResult # List of release architectures ARCHITECTURES = i386 sparc alpha powerpc arm hppa ia64 mips mipsel s390 amd64 diff --git a/britney.py b/britney.py index a33c843..d9c55a0 100644 --- a/britney.py +++ b/britney.py @@ -766,7 +766,7 @@ class Britney: return hints - def write_heidi(self, basedir, filename): + def write_heidi(self, filename): """Write the output HeidiResult This method write the output for Heidi, which contains all the @@ -775,7 +775,6 @@ class Britney: """ - filename = os.path.join(basedir, filename) self.__log("Writing Heidi results to %s" % filename) f = open(filename, 'w') @@ -788,8 +787,8 @@ class Britney: for pkg_name in sorted(binaries): pkg = binaries[pkg_name] pkgv = pkg[VERSION] - pkgarch = pkg[ARCHITECTURE] - pkgsec = pkg[SECTION] or 'unknown' + pkgarch = pkg[ARCHITECTURE] or 'all' + pkgsec = pkg[SECTION] or 'faux' f.write('%s %s %s %s\n' % (pkg_name, pkgv, pkgarch, pkgsec)) # write sources @@ -2476,10 +2475,11 @@ class Britney: self.write_controlfiles(self.options.testing, 'testing') # write bugs and dates - self.write_dates(self.options.testing, self.dates) + # XXX: disabled, we don't have write permission over there + # self.write_dates(self.options.testing, self.dates) # write HeidiResult - self.write_heidi(self.options.testing, 'HeidiResult') + self.write_heidi(self.options.heidi_output) self.__output.close() self.__log("Test completed!", type="I")