]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (ionice) use long options to improve test coverage report
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 22 Jan 2026 03:02:30 +0000 (22:02 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 29 Jan 2026 13:08:49 +0000 (08:08 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tests/ts/misc/ionice

index 01149794922be257d556cbb579f2dbcc2e32e1b2..96d88a01aba68554aa2aaa6f7371dbcccf91e03c 100755 (executable)
@@ -20,11 +20,11 @@ ts_init "$*"
 
 ts_check_test_command "$TS_CMD_IONICE"
 
-$TS_CMD_IONICE -p $$ -n 0 -c 0 >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_IONICE -p $$ -n 3 -c 7 >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_IONICE -p $$ -n 4 -c 7 >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_IONICE -p $$ -n 1 -c 8 >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_IONICE -n 3 ls /etc/passwd >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_IONICE -p $$ >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_IONICE --pid $$ --classdata 0 --class 0 >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_IONICE --pid $$ --classdata 3 --class 7 >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_IONICE --pid $$ --classdata 4 --class 7 >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_IONICE --pid $$ --classdata 1 --class 8 >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_IONICE --classdata 3 ls /etc/passwd >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_IONICE --pid $$ >> $TS_OUTPUT 2>> $TS_ERRLOG
 
 ts_finalize