mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 21:20:48 +00:00
Merge pull request #13566 from LabNConsulting/chopps/analyze-improvement
tests: have ananlyze.py `chown -R $SUDO_USER` when copying results
This commit is contained in:
commit
697e7e5174
@ -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