diff options
author | Christian Hopps <chopps@labn.net> | 2023-05-20 05:14:18 +0200 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2023-05-20 05:14:18 +0200 |
commit | 47e52c47d482eb1186cf28b2a6231a089c5eed58 (patch) | |
tree | 37ebbc90952110a81826043e516d9a26170b7d8e /tests | |
parent | Merge pull request #13549 from LabNConsulting/chopps/cclsopt (diff) | |
download | frr-47e52c47d482eb1186cf28b2a6231a089c5eed58.tar.xz frr-47e52c47d482eb1186cf28b2a6231a089c5eed58.zip |
tests: have ananlyze.py `chown -R $SUDO_USER` when copying results
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/topotests/analyze.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/topotests/analyze.py b/tests/topotests/analyze.py index 360c9cf1e..9c9bfda1e 100755 --- a/tests/topotests/analyze.py +++ b/tests/topotests/analyze.py @@ -161,6 +161,8 @@ def main(): logging.critical('No "/tmp/topotests" directory to save') sys.exit(1) subprocess.run(["mv", "/tmp/topotests", args.results]) + if "SUDO_USER" in os.environ: + subprocess.run(["chown", "-R", os.environ["SUDO_USER"], args.results]) # # Old location for results # if os.path.exists("/tmp/topotests.xml", args.results): # subprocess.run(["mv", "/tmp/topotests.xml", args.results]) |