Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions Gui/python/TestHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def __init__(self, runwindow, master, info, firmware, txt_files={}):
self.SLDOScanHandler = None
self.trimbitHandler = None
self.starttime = None
self._OBT_starttime = None

self.processingFlag = False
self.ProgresBarList = []
Expand Down Expand Up @@ -1497,6 +1498,11 @@ def on_readyReadStandardOutput(self, processIndex: int):
# print(f"Clean_text: {clean_text}")
print(f"Chip Number: {chip_number}")

if self._openBumpTest_running:
if self._OBT_starttime is None:
self._OBT_starttime = time.time()
self.starttime = self._OBT_starttime

if self.starttime is not None:
self.currentTime = time.time()
runningTime = self.currentTime - self.starttime
Expand All @@ -1520,12 +1526,17 @@ def on_readyReadStandardOutput(self, processIndex: int):
self.ProgressValue = float(
re.sub(r"\x1b\[\d+m", "", textStr.split()[index].strip("%"))
)
if self.ProgressValue == 100:
self.ProgressingMode[processIndex] = ProgressMode.SUMMARY
self.runwindow.ResultWidget.ProgressBars[processIndex][
self.testIndexTracker
].setValue(self.ProgressValue)
##Added because of Ph2_ACF bug:
# Check if openBumpTest is running
if self._openBumpTest_running:
scaled_progress_value = (self._openBumpTest_subtest_index * (100/3) + (self.ProgressValue / 3))
self.runwindow.ResultWidget.ProgressBars[processIndex][self.testIndexTracker].setValue(scaled_progress_value)

else:
if self.ProgressValue == 100:
self.ProgressingMode[processIndex] = ProgressMode.SUMMARY
self.runwindow.ResultWidget.ProgressBars[processIndex][
self.testIndexTracker
].setValue(self.ProgressValue)

except Exception as e:
print(f"Error while updating progress bar {e}")
Expand Down
Loading