Files
honghua 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
717 B
Bash
Executable File

#!/bin/bash
# Security test: openscap - generate_fix
# 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 - generate_fix"
rlRun "_openscapGenerateFix" 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