mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
scripts/archive_buildstats.py: Only create directories if we copy files
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
faf9deb130
commit
0646d5df44
|
@ -21,7 +21,6 @@ def main():
|
||||||
if not os.path.exists(build_bsdir):
|
if not os.path.exists(build_bsdir):
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
subprocess.run(["mkdir", "-p", dest_bsdir])
|
|
||||||
hostname = socket.gethostname()
|
hostname = socket.gethostname()
|
||||||
os.chdir(build_bsdir)
|
os.chdir(build_bsdir)
|
||||||
fail_path = os.path.join(dest, target, "intermittent_failure_host_data")
|
fail_path = os.path.join(dest, target, "intermittent_failure_host_data")
|
||||||
|
@ -29,6 +28,7 @@ def main():
|
||||||
|
|
||||||
#archive the buildstats of failures and 1% of random builds
|
#archive the buildstats of failures and 1% of random builds
|
||||||
if fail_output or random.randint(1,100)%100 == 0:
|
if fail_output or random.randint(1,100)%100 == 0:
|
||||||
|
subprocess.run(["mkdir", "-p", dest_bsdir])
|
||||||
for timestamp in os.listdir(build_bsdir):
|
for timestamp in os.listdir(build_bsdir):
|
||||||
if hostname:
|
if hostname:
|
||||||
output = hostname + "-" + timestamp + ".tar.zst"
|
output = hostname + "-" + timestamp + ".tar.zst"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user