Files
redrsoe2100 e2e680831c fix: add executable permission bit for all 3963 .sh test scripts
All .sh files under tests/ lacked the Git executable permission bit
(100644 instead of 100755), causing tmt run to fail with 'permission
denied' errors on Linux servers.

Fixes: woqidaideshi/openruyi-autotest#80
2026-07-06 14:36:45 +08:00

27 lines
712 B
Bash
Executable File

#!/bin/bash
# Security test: openscap - eval
# OpenSCAP: 执行合规性评估扫描
# Beakerlib-based test with lifecycle management
. /usr/share/beakerlib/beakerlib.sh || exit 1
. "$(dirname $0)/../../lib.sh"
rlJournalStart
rlPhaseStartSetup "Environment Setup"
openscapSetup
TmpDir=$(mktemp -d)
rlRun "cd $TmpDir" 0 "Enter tmp dir"
rlPhaseEnd
rlPhaseStartTest "openscap - eval"
rlRun "_openscapEval" 0 "Run 执行合规性评估扫描"
rlPhaseEnd
rlPhaseStartCleanup "Cleanup"
rlRun "cd /" 0 "Leave tmp dir"
[ -n "$TmpDir" ] && [ -d "$TmpDir" ] && rlRun "rm -rf $TmpDir" 0 "Clean tmp"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd