Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
21d1e70
)
master_daemon: chmod 777 on unpacked dir, so that core dumps can be written
author
Yaroslav Brustinov
<
[email protected]
>
Wed, 22 Mar 2017 11:12:03 +0000
(13:12 +0200)
committer
Yaroslav 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
patch
|
blob
|
history
diff --git
a/scripts/master_daemon.py
b/scripts/master_daemon.py
index
b5605e5
..
b65f200
100755
(executable)
--- 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)