diff --git a/.rive_head b/.rive_head index f7d93092..3f2cfc57 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -2a6cf9d0a60f53d8d8f0c6e2d2d837f441780902 +14dcaa0cdedd07c92b77bc013567251ffc29b2c6 diff --git a/tests/deploy_tests.py b/tests/deploy_tests.py index d772ca19..eb55aadd 100644 --- a/tests/deploy_tests.py +++ b/tests/deploy_tests.py @@ -132,6 +132,9 @@ def cancel_input(): input_cancelled = True input_received_cond.notify_all() +class text_colors: + ERROR = '\033[91m' + ENDCOL = '\033[0m' # Launch a process in a separate thread and crash if it fails. class CheckProcess(threading.Thread): @@ -142,7 +145,10 @@ def __init__(self, cmd): self.cmd = ["echo", "\n "] + ['"%s"' % arg for arg in self.cmd] if args.verbose: print(' '.join(self.cmd), flush=True) - self.proc = subprocess.Popen(self.cmd) + if shutil.which(self.cmd[0]) is None: + print(f'{text_colors.ERROR}' + self.cmd[0] + ' does not exist!' + f'{text_colors.ENDCOL}') + else: + self.proc = subprocess.Popen(self.cmd) def run(self): self.proc.wait()