diff options
author | Jordan Bayles <jophba@chromium.org> | 2021-08-01 10:42:29 -0700 |
---|---|---|
committer | Openscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2021-08-02 19:44:43 +0000 |
commit | b9be95eef079e1c04520a05a3bd057bec59b77a3 (patch) | |
tree | 8c37cb1440c8376975f498a703c9ed7bec8575d9 /cast | |
parent | c6fdd48ace63566701b8d8315741d402162fe425 (diff) | |
download | openscreen-b9be95eef079e1c04520a05a3bd057bec59b77a3.tar.gz |
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 <jophba@chromium.org>
Reviewed-by: Ryan Keane <rwkeane@google.com>
Diffstat (limited to 'cast')
-rwxr-xr-x | cast/standalone_e2e.py | 18 |
1 files changed, 11 insertions, 7 deletions
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.""" |