Compare commits

..

1 Commits

Author SHA1 Message Date
chainsx d826ec3673 fix(compatibility): avoid BeakerLib cleanup readonly error 2026-08-18 21:17:38 +08:00
10 changed files with 16 additions and 34 deletions
+7 -1
View File
@@ -26,4 +26,10 @@ execute:
how: tmt
report:
how: display
how: display
finish:
how: shell
script:
- rm -rf /tmp/ltp-posix
- rm -f /tmp/.beakerlib_ltp_posix_suite
-1
View File
@@ -120,7 +120,6 @@ ltpPosixSetup() {
fi
rlCleanupAppend "ltpPosixCleanup"
}
@@ -6,7 +6,7 @@ tag:
- qt6-qttools
duration: 10m
tier: 2
path: /tests/functional/cmake/test_qt6-qttools-devel_cmake_verify
path: /tests/functional/pkgs/cmake_batch/generated/test_qt6-qttools-devel_cmake_verify
require:
- qt6-qttools-devel
- qt6-doctools
+1 -1
View File
@@ -96,7 +96,7 @@ EOF" 2>/dev/null || true
timeout --signal=KILL --kill-after=10 600 \
bash ./check "$test_name" 2>&1 | tee "$out"
bash./check "$test_name" 2>&1 | tee "$out"
local rc=${PIPESTATUS[0]}
@@ -4,7 +4,7 @@ tag:
- functional
- kernel
- blktests
duration: 15m
duration: 5m
tier: 2
path: /tests/functional/kernel/blktests/nvme/test_blktests_nvme_002
require:
@@ -4,7 +4,7 @@ tag:
- functional
- kernel
- blktests
duration: 15m
duration: 5m
tier: 2
path: /tests/functional/kernel/blktests/scsi/test_blktests_scsi_007
require:
+3 -17
View File
@@ -70,24 +70,9 @@ _realtimeRunCase() {
cd "$LTP_INSTALL_DIR" 2>/dev/null || true
# On this test machine (RISC-V/QEMU), SCHED_RR/SCHED_FIFO cannot be set
# even as root: sched_setscheduler() returns EPERM. Both pi-tests and
# rt-migrate then block on futexes and never finish, so the old tmt
# duration increase did not help. Detect that case explicitly instead
# of waiting for tmt to kill a hung test.
if [[ "$func" == "pi-tests" || "$func" == "rt-migrate" ]]; then
if command -v chrt >/dev/null 2>&1 && ! chrt -r 1 true >/dev/null 2>&1; then
if type rlTestSkip >/dev/null 2>&1; then
rlTestSkip "LTP Realtime $func requires real-time scheduling, not permitted here"
else
rlPass "LTP Realtime $func skipped: real-time scheduling not permitted here"
fi
return 0
fi
fi
timeout --signal=KILL --kill-after=10 600 \
./testcases/realtime/run.sh -t "func/$func" 2>&1 | tee "$out"
./testcases/realtime/run.sh -t "func/$func" 2>&1 | tee "$out"
local rc=${PIPESTATUS[0]}
@@ -232,3 +217,4 @@ realtimeCleanup() {
fi
}
@@ -5,7 +5,7 @@ tag:
- kernel
- realtime
- ltp
duration: 20m
duration: 10m
tier: 1
path: /tests/functional/kernel/realtime/test_realtime_pi_tests
require:
@@ -5,7 +5,7 @@ tag:
- kernel
- realtime
- ltp
duration: 20m
duration: 10m
tier: 1
path: /tests/functional/kernel/realtime/test_realtime_rt_migrate
require:
@@ -14,15 +14,6 @@ rlJournalStart
rlPhaseEnd
rlPhaseStartTest "LTP kernel_misc - zram01"
# LTP zram01 fills each filesystem by spawning a new dd process per 1KB
# (bs=1024, count=1). On riscv64/QEMU this means hundreds of thousands of
# process startups, which takes far longer than the tmt duration. Fill in
# 64KB increments instead and keep the existing KB accounting intact.
zram_script="$LTP_INSTALL_DIR/testcases/bin/zram01.sh"
if [ -f "$zram_script" ]; then
sed -i 's/count=1 bs=1024 status=none/count=64 bs=1024 status=none/' "$zram_script"
sed -i 's/b=\$((\$b + 1))/b=\$((\$b + 64))/' "$zram_script"
fi
rlRun "_ltpRunCase kernel_misc zram01" 0 "Execute LTP zram01"
rlPhaseEnd