[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.45-56-gf60418b
Andreas Beckmann
debian at abeckmann.de
Wed Jul 18 19:28:45 UTC 2012
The following commit has been merged in the develop branch:
commit a2068e17e6590cf1cd0375920fc39f616c869c68
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Wed Jun 20 21:50:20 2012 +0200
p-s: add _count_submittable_logs() method
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piuparts-slave.py b/piuparts-slave.py
index edac349..8dc18c9 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -320,6 +320,14 @@ class Section:
os.chdir(oldcwd)
+ def _count_submittable_logs(self):
+ files = 0
+ for logdir in ["pass", "fail", "untestable"]:
+ for basename in os.listdir(os.path.join(self._slave_directory, logdir)):
+ if basename.endswith(".log"):
+ files += 1
+ return files
+
def precedence(self):
return int(self._config["precedence"])
--
piuparts git repository
More information about the Piuparts-commits
mailing list