DO NOT MERGE the spec change

Adding test for inplace upgrade of running python
https://bugzilla.redhat.com/show_bug.cgi?id=233385
This commit is contained in:
Lukáš Zachar 2025-05-15 18:09:20 +02:00
commit 59c48c8247
6 changed files with 66 additions and 1 deletions

19
tests/runtime/repro.py Normal file
View file

@ -0,0 +1,19 @@
import time
from pathlib import Path
flag_file = Path('/tmp/runtime')
status_file = Path('/tmp/runtime_status')
assert not flag_file.exists()
print(f'Started - touch {flag_file} when ready')
print(f'Status in {status_file}')
status_file.write_text('running')
while not flag_file.exists():
time.sleep(2)
import email.parser
print('DONE')
status_file.write_text('PASS')