mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
archive_buildstats: Only create dirs if we have data
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
b1e2db6640
commit
78ca7fb97b
|
@ -16,11 +16,12 @@ def main():
|
||||||
dest = sys.argv[2]
|
dest = sys.argv[2]
|
||||||
target = sys.argv[3]
|
target = sys.argv[3]
|
||||||
dest_bsdir = os.path.join(dest, target, "buildstats")
|
dest_bsdir = os.path.join(dest, target, "buildstats")
|
||||||
subprocess.run(["mkdir", "-p", dest_bsdir])
|
|
||||||
|
|
||||||
build_bsdir = os.path.join(builddir, "tmp/buildstats")
|
build_bsdir = os.path.join(builddir, "tmp/buildstats")
|
||||||
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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user