phase2: clear staged failure logs as well
authorJo-Philipp Wich <jo@mein.io>
Sat, 10 Nov 2018 14:14:15 +0000 (15:14 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 10 Nov 2018 14:14:15 +0000 (15:14 +0100)
This should prevent persistent slaves from re-uploading stale error logs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase2/master.cfg

index 9ce8f5005f83c008ce2f822970ba043c5baca15d..74f124aa2ebcf7806ba84a7e9bf8724c1d16a4c8 100644 (file)
@@ -338,9 +338,9 @@ for arch in arches:
 
        factory.addStep(ShellCommand(
                name = "logclear",
-               description = "Clearing failure log list",
+               description = "Clearing failure logs",
                workdir = "build/sdk",
-               command = ["rm", "-f", "logs/package/error.txt"],
+               command = ["rm", "-rf", "logs/package/error.txt", "faillogs/"],
                haltOnFailure = False
        ))