X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fscripts%2Ftopo_reservation.py;h=021c60a6b6fe7682b87b22c6c376cce121a61160;hb=ac33ed374cb82c9258e4cf57e150f77750362bbc;hp=213fa636dfb5089ab10ed08e4a212e3d186d5de8;hpb=1b9d4210b9b466fedab3a5891ec16a34e67a78ee;p=csit.git diff --git a/resources/tools/scripts/topo_reservation.py b/resources/tools/scripts/topo_reservation.py index 213fa636df..021c60a6b6 100755 --- a/resources/tools/scripts/topo_reservation.py +++ b/resources/tools/scripts/topo_reservation.py @@ -103,7 +103,8 @@ def main(): # If connection is refused, ret==None. if ret != 0: print(f"Cancellation unsuccessful:\n{err!r}") - return 1 + return 1 + return 0 # Before critical section, output can be outdated already. print(u"Diagnostic commands:") # -d and * are to suppress "total ", see https://askubuntu.com/a/61190 @@ -113,7 +114,7 @@ def main(): ret, _, _ = exec_cmd(node, f"mkdir '{RESERVATION_DIR}'") # Critical section is over. if ret is None: - print(f"Failed to connect to testbed.") + print(u"Failed to connect to testbed.") return 1 if ret != 0: _, stdo, _ = exec_cmd(node, f"ls '{RESERVATION_DIR}'/*")