Adding test for inplace upgrade of running python https://bugzilla.redhat.com/show_bug.cgi?id=233385
31 lines
708 B
Bash
Executable file
31 lines
708 B
Bash
Executable file
#!/bin/bash
|
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
|
|
STATUS_FILE=/tmp/runtime_status
|
|
FLAG_FILE=/tmp/runtime
|
|
|
|
cleanup(){
|
|
for f in $STATUS_FILE $FLAG_FILE; do
|
|
test -e $f && rm -f $f
|
|
done
|
|
}
|
|
|
|
rlJournalStart
|
|
rlPhaseStartTest
|
|
cleanup
|
|
|
|
rlRun "rpm -q python3 && python3 --version"
|
|
python3 repro.py &
|
|
rlWaitForFile $STATUS_FILE
|
|
rlRun "dnf update -y python*"
|
|
rlRun "rpm -q python3 && python3 --version"
|
|
rlRun "touch $FLAG_FILE"
|
|
sleep 2
|
|
rlAssertGrep 'PASS' $STATUS_FILE
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartCleanup
|
|
cleanup
|
|
rlPhaseEnd
|
|
rlJournalEnd
|