Changeset View
Changeset View
Standalone View
Standalone View
tests/python/cycles_render_tests.py
| Show All 32 Lines | except subprocess.CalledProcessError as e: | ||||
| os.remove(TEMP_FILE) | os.remove(TEMP_FILE) | ||||
| if VERBOSE: | if VERBOSE: | ||||
| print(e.output.decode("utf-8")) | print(e.output.decode("utf-8")) | ||||
| if b"Error: engine not found" in e.output: | if b"Error: engine not found" in e.output: | ||||
| return "NO_CYCLES" | return "NO_CYCLES" | ||||
| elif b"blender probably wont start" in e.output: | elif b"blender probably wont start" in e.output: | ||||
| return "NO_START" | return "NO_START" | ||||
| return "CRASH" | return "CRASH" | ||||
| except: | except BaseException as e: | ||||
| if os.path.exists(TEMP_FILE): | if os.path.exists(TEMP_FILE): | ||||
| os.remove(TEMP_FILE) | os.remove(TEMP_FILE) | ||||
| if VERBOSE: | if VERBOSE: | ||||
| print(e.output.decode("utf-8")) | print(e) | ||||
| return "CRASH" | return "CRASH" | ||||
| def test_get_name(filepath): | def test_get_name(filepath): | ||||
| filename = os.path.basename(filepath) | filename = os.path.basename(filepath) | ||||
| return os.path.splitext(filename)[0] | return os.path.splitext(filename)[0] | ||||
| ▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines | |||||