From b9be95eef079e1c04520a05a3bd057bec59b77a3 Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Sun, 1 Aug 2021 10:42:29 -0700 Subject: Add informational cast standalone bot This PR adds an experimental (i.e. non-blocking) bot called linux64_cast_debug, that builds the standalone cast binaries in order to run the standalone_e2e.py test script in a later patch. This does NOT add the dependency libs for cast standalone, which will need future work with the infrastructure team. Finally, this patch adds some improved logging to the cast standalone script. Change-Id: I02448420c44a0e9184f260fa2ce02710c90693b5 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/3063815 Commit-Queue: Jordan Bayles Reviewed-by: Ryan Keane --- cast/standalone_e2e.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'cast') diff --git a/cast/standalone_e2e.py b/cast/standalone_e2e.py index b27e3c65..c64ab5e7 100755 --- a/cast/standalone_e2e.py +++ b/cast/standalone_e2e.py @@ -177,13 +177,17 @@ class StandaloneCastTest(unittest.TestCase): return logging.debug('Credentials out of date, generating new ones...') - subprocess.check_output( - [ - cls.build_paths.cast_receiver, - '-g', # Generate certificate and private key. - '-v' # Enable verbose logging. - ], - stderr=subprocess.STDOUT) + try: + subprocess.check_output( + [ + cls.build_paths.cast_receiver, + '-g', # Generate certificate and private key. + '-v' # Enable verbose logging. + ], + stderr=subprocess.STDOUT) + except subprocess.CalledProcessError as e: + print('Generation failed with output: ', e.output.decode()) + raise def launch_receiver(self): """Launches the receiver process with discovery disabled.""" -- cgit v1.2.3