From 9d62e133eb98b2eafb8cb207d0d7a66004574e82 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Tue, 26 Sep 2023 21:34:08 +1300 Subject: [PATCH] Wait until instance is terminated before returning from script --- release-process/test-system.py | 1 + 1 file changed, 1 insertion(+) diff --git a/release-process/test-system.py b/release-process/test-system.py index 9bbcc3c6454..02142c1d837 100755 --- a/release-process/test-system.py +++ b/release-process/test-system.py @@ -122,6 +122,7 @@ def terminate(self): response = self.instance.terminate() if response['ResponseMetadata']['HTTPStatusCode'] != 200: print('Terminating VM %s failed: %s'%(self.instance_id, response), file=sys.stderr) + self.instance.wait_until_terminated() with open(args.distro_config_json, 'r') as f: distro_config = json.load(f)