[Buildroot] [autobuild v2 1/3] autobuild-run: prevent send_result from failing when gathering config files
Samuel Martin
s.martin49 at gmail.com
Wed Apr 29 20:10:15 UTC 2015
os.makedirs() can fail if the directory already exists, so only create it
when needed.
Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
---
changes v1->v2
- remove useless abspath call
---
scripts/autobuild-run | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/autobuild-run b/scripts/autobuild-run
index 0e12080..6e83de9 100755
--- a/scripts/autobuild-run
+++ b/scripts/autobuild-run
@@ -661,7 +661,8 @@ def send_results(result, **kwargs):
for fname in files:
if fname == 'config.log':
- os.makedirs(dest)
+ if not os.path.exists(dest):
+ os.makedirs(dest)
shutil.copy(os.path.join(root, fname), os.path.join(dest, fname))
copy_config_log_files()
--
2.3.7
More information about the buildroot
mailing list