You can now configure the path for the HeidiResult file.

master
Fabio Tranchitella 17 years ago
parent 20621c1a27
commit 0b5c20b589

@ -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

@ -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:
<pkg-name> <pkg-version> <pkg-architecture> <pkg-section>
<src-name> <src-version> <src-section>
"""
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")

Loading…
Cancel
Save