cicd: Make log files unique per testbed.

So we can manage multiple test beds from one controller.
This commit is contained in:
Ben Greear
2020-06-03 10:44:59 -07:00
parent 958fdef8ca
commit 9bf6cacc29
2 changed files with 33 additions and 17 deletions

View File

@@ -248,7 +248,18 @@ def main():
logg.info("Command[%s]"%command)
egg.sendline(command);
i = egg.expect(["password:", "Do you want to continue connecting"], timeout=5)
i = egg.expect(["password:", "Do you want to continue connecting", "Network unreachable"], timeout=5)
if i == 2:
print("Network unreachable, wait 15 seconds and try again.")
time.sleep(15)
command = "scp %s /tmp/%s"%(args.value, args.value2)
logg.info("Command[%s]"%command)
egg.sendline(command);
i = egg.expect(["password:", "Do you want to continue connecting", "Network unreachable"], timeout=5)
if i == 2:
print("ERROR: Could not connect to LANforge to get download file")
exit(2)
if i == 1:
egg.sendline("y")
egg.expect("password:", timeout=5)