|
20 | 20 | if shutil.which("xvfb-run") is None: |
21 | 21 | raise FileNotFoundError("xvfb-run is not installed. Please install xvfb package.") |
22 | 22 |
|
| 23 | +bindir = '../../../smv/Build/for_bundle' |
23 | 24 | outdir = '../../Verification/' |
24 | 25 | original_dir = os.getcwd() |
25 | 26 |
|
|
39 | 40 | print('generating smokeview image ' + case[i]) |
40 | 41 | os.chdir(outdir + folder[i]) |
41 | 42 | if os_name == "Linux": |
42 | | - subprocess.run(['xvfb-run','-w 10 -s "-fp /usr/share/X11/fonts/misc -screen 0 1280x1024x24" -a',smokeview_path,'-bindir ../../../smv/Build/for_bundle -runscript',case[i]], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) |
| 43 | + try: |
| 44 | + subprocess.run(['xvfb-run','-w','10','-s','-fp /usr/share/X11/fonts/misc -screen 0 1280x1024x24','-a',smokeview_path, |
| 45 | + '-bindir',bindir,'-runscript', case[i] ], check=True) |
| 46 | + except subprocess.CalledProcessError as e: |
| 47 | + print(f"Smokeview failed with return code {e.returncode}") |
| 48 | + except FileNotFoundError: |
| 49 | + print(f"Smokeview executable not found: {smokeview_path}") |
| 50 | + |
43 | 51 | else: |
44 | | - subprocess.run([smokeview_path,'-bindir ../../../smv/Build/for_bundle -runscript',case[i]], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) |
| 52 | + subprocess.run([smokeview_path,'-bindir',bindir,'-runscript',case[i]], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) |
45 | 53 | os.chdir(original_dir) |
46 | 54 |
|
0 commit comments