Skip to content

Commit 1e80779

Browse files
committed
Ensure test bar moves forward
1 parent a65eba6 commit 1e80779

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

run_functions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ def run(self):
568568
self.gui.run_window.test_progress_bar.setVisible(False)
569569
self.gui.run_window.test_files_label.setVisible(False)
570570
else:
571-
self.test_filenames = sorted(next(os.walk(self.config['DATA']['TEST']['PATH']))[2])
572571
self.test_files = len(sorted(next(os.walk(self.config['DATA']['TEST']['PATH']))[2]))
573572
self.gui.run_window.test_progress_bar.setMaximum(self.test_files)
574573

@@ -707,7 +706,7 @@ def run(self):
707706

708707
# Update test progress bar
709708
if self.config['TEST']['ENABLE'] and start_test and self.test_image_count < self.test_files and \
710-
"Processing image: {}".format(self.test_filenames[self.test_image_count]) in l:
709+
"Processing image: " in l:
711710
self.test_image_count += 1
712711
self.update_test_progress_signal.emit(self.test_image_count)
713712

0 commit comments

Comments
 (0)