diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-22 13:12:03 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-22 13:12:03 +0200 |
commit | be08ffe2c6e662032115b2a77f096b98955e3143 (patch) | |
tree | 350b357648ec6450081aefb029aba6fdbbf48ecb /scripts | |
parent | 21d1e70dd1f25e3b1bd9f2916ccc8f2678eba870 (diff) |
master_daemon: chmod 777 on unpacked dir, so that core dumps can be written
Change-Id: I64da45c759298329fccae3098fdf75340a0f8ade
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/master_daemon.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/master_daemon.py b/scripts/master_daemon.py index b5605e50..b65f2002 100755 --- a/scripts/master_daemon.py +++ b/scripts/master_daemon.py @@ -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) |