Finished run.py implementation, removed test case 7.

This commit is contained in:
dario
2024-01-09 15:59:14 +01:00
parent adc37233ab
commit a8225acade
3 changed files with 3 additions and 82 deletions

4
run.py
View File

@@ -31,14 +31,14 @@ for case in os.listdir(path):
print(colored(f'Building case { number }...', 'blue'))
# Build the new project and upload it to the STM32.
out = subprocess.run([r'Tasty\flash.bat', case])
out = subprocess.run([r'Tasty\flash.bat', 'TACOS_DEV'], stdout = subprocess.DEVNULL)
# Check if the bash script was successfully executed.
if out.returncode != 0:
print('Building\t' + colored('[FAILED]', 'red'))
continue
else:
print('Building\t' + colored('[PASSED]', 'red'))
print('Building\t' + colored('[PASSED]', 'green'))
print(colored(f'Running case { number }...', 'blue'))