[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2781/8267] scripts/buildstats-diff: check that the given directory exists
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 2781/8267] scripts/buildstats-diff: check that the given directory exists
- Date: Sat, 16 Dec 2017 23:42:42 +0000 (UTC)
commit 58bd0fd62d1617f60e6b42e11f19e14289b6ee24
Author: Markus Lehtonen <markus lehtonen linux intel com>
Date: Thu Sep 29 17:27:58 2016 +0300
scripts/buildstats-diff: check that the given directory exists
(From OE-Core rev: 08082b96d8d09215f02e9251f354bb6e8bb3e712)
Signed-off-by: Markus Lehtonen <markus lehtonen linux intel com>
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
scripts/buildstats-diff | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/scripts/buildstats-diff b/scripts/buildstats-diff
index 8ee2aaf..d0cd766 100755
--- a/scripts/buildstats-diff
+++ b/scripts/buildstats-diff
@@ -115,11 +115,14 @@ def read_buildstats_dir(bs_dir):
if os.path.isfile(os.path.join(bs_dir, 'build_stats')):
top_dir = bs_dir
- else:
+ elif os.path.exists(bs_dir):
subdirs = sorted(glob.glob(bs_dir + '/*'))
if len(subdirs) > 1:
log.warning("Multiple buildstats found, using the first one")
top_dir = subdirs[0]
+ else:
+ log.error("No such directory: %s", bs_dir)
+ sys.exit(1)
log.debug("Reading buildstats directory %s", top_dir)
subdirs = os.listdir(top_dir)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]