Skip to content

Commit

Permalink
dummypython: add a ton of calls to setprogress()
Browse files Browse the repository at this point in the history
Stress testing for #1912
  • Loading branch information
adriaandegroot committed Oct 29, 2023
1 parent 8688285 commit b7545fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/dummypython/main.py
Expand Up @@ -76,6 +76,10 @@ def run():

sleep(1)

million = 1000000
for i in range(million):
libcalamares.job.setprogress(i / million)

try:
configlist = list(libcalamares.job.configuration["a_list"])
except KeyError:
Expand Down

0 comments on commit b7545fd

Please sign in to comment.