master_daemon: chmod 777 on unpacked dir, so that core dumps can be written
authorYaroslav Brustinov <[email protected]>
Wed, 22 Mar 2017 11:12:03 +0000 (13:12 +0200)
committerYaroslav Brustinov <[email protected]>
Wed, 22 Mar 2017 11:12:03 +0000 (13:12 +0200)
Change-Id: I64da45c759298329fccae3098fdf75340a0f8ade
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/master_daemon.py

index b5605e5..b65f200 100755 (executable)
@@ -56,6 +56,7 @@ def update_trex(package_path = 'http://trex-tgn.cisco.com/trex/release/latest'):
             unpacked_dirs.append(tmp_file)
     if len(unpacked_dirs) != 1:
         raise Exception('Should be exactly one unpacked directory, got: %s' % unpacked_dirs)
+    os.chmod(unpacked_dirs[0], 0o777) # allow core dumps to be written
     cur_dir = args.trex_dir
     if os.path.islink(cur_dir) or os.path.isfile(cur_dir):
         os.unlink(cur_dir)