mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 04:25:43 +00:00
tests: have ananlyze.py chown -R $SUDO_USER
when copying results
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
32b20e1ad6
commit
47e52c47d4
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user