Drop the priority reset testcase
It only ever worked as root, which we don't want to encourage for the
test-suite anyway, and commit 86c523da6f
broke it even for root since plugins are globally disabled in the test-suite.
We can always reintroduce it later if it becomes feasible...
This commit is contained in:
parent
39cce0a43f
commit
054f3ce53c
|
@ -202,69 +202,3 @@ transfiletriggerpostun(/foo*):
|
|||
[])
|
||||
AT_CLEANUP
|
||||
|
||||
#
|
||||
AT_SETUP([Proper reset of nice/ionice levels on scripts - only works as root!])
|
||||
AT_KEYWORDS([verify nice])
|
||||
AT_CHECK([
|
||||
AT_XFAIL_IF([test `whoami` != root ])
|
||||
RPMDB_CLEAR
|
||||
RPMDB_INIT
|
||||
rm -rf "${TOPDIR}"
|
||||
|
||||
runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
|
||||
runroot rpmbuild --quiet -bb --define "rel 1" /data/SPECS/scripts-nice-ionice.spec
|
||||
runroot rpmbuild --quiet -bb --define "rel 2" /data/SPECS/scripts-nice-ionice.spec
|
||||
|
||||
runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
|
||||
runroot nice -n 10 ionice -c3 rpm -Vvp /build/RPMS/noarch/scripts-nice-ionice-1.0-1.noarch.rpm
|
||||
runroot nice -n 10 ionice -c3 rpm -U /build/RPMS/noarch/scripts-nice-ionice-1.0-1.noarch.rpm
|
||||
runroot nice -n 10 ionice -c3 rpm -U /build/RPMS/noarch/scripts-nice-ionice-1.0-2.noarch.rpm
|
||||
runroot nice -n 10 ionice -c3 rpm -Vv scripts-nice-ionice
|
||||
runroot nice -n 10 ionice -c3 rpm -e scripts-nice-ionice
|
||||
],
|
||||
[0],
|
||||
[scripts-nice-ionice-1.0-1 VERIFY 0
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-1 PRETRANS 1
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-1 PRE 1
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-1 POST 1
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-1 POSTTRANS 1
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-2 PRETRANS 2
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-2 PRE 2
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-2 POST 2
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-1 PREUN 1
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-1 POSTUN 1
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-2 POSTTRANS 1
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-2 VERIFY 1
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-2 PREUN 0
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
scripts-nice-ionice-1.0-2 POSTUN 0
|
||||
Nice value is 0
|
||||
IOnice value is none: prio 4
|
||||
],
|
||||
[])
|
||||
AT_CLEANUP
|
||||
|
|
Loading…
Reference in New Issue