Skip to content

Commit

Permalink
update ngspice version check statement
Browse files Browse the repository at this point in the history
  • Loading branch information
chetanyagoyal authored Nov 15, 2023
1 parent 36dfb27 commit 32244e4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/scripts/parse_rpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import json
import os
import re, subprocess
from common.get_ngspice_version import get_ngspice_version
from common.get_ngspice_version import check_ngspice_version
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from common.check_gen_files import check_gen_files

Expand Down Expand Up @@ -113,11 +113,9 @@
print("Flow check failed!")

if len(sys.argv) == 1:
prev_ngspice_ver = 41
installed_ngspice_ver = get_ngspice_version()
sim_state_filename = "work/sim_state_file.txt"

if installed_ngspice_ver != 0:
if check_ngspice_version():
if installed_ngspice_ver == prev_ngspice_ver:
result_filename = "work/prePEX_sim_result"

Expand Down Expand Up @@ -149,4 +147,4 @@
else:
raise ValueError("Simulations failed: required of run folders do not exist!")

print("Simulations are clean!")
print("Simulations are clean!")

0 comments on commit 32244e4

Please sign in to comment.