Correction création répertoires dans helpers de test
All checks were successful
Tests et Vérifications / Tests unitaires BATS (push) Successful in 15s
Tests et Vérifications / Vérification ShellCheck (push) Successful in 7s
Tests et Vérifications / Vérification syntaxe Bash (push) Successful in 3s
Tests et Vérifications / Résumé des tests (push) Successful in 1s

This commit is contained in:
Tellsanguis 2025-12-29 13:07:54 +01:00
parent b4b8b76800
commit 08eccb2d45

View file

@ -231,6 +231,7 @@ create_disk_uuid_file() {
local pool="$1" local pool="$1"
local uuid="${2:-wwn-0x5000cca2dfe2e414}" local uuid="${2:-wwn-0x5000cca2dfe2e414}"
mkdir -p "${STATE_DIR}"
cat > "${STATE_DIR}/disk-uuids-${pool}.txt" <<EOF cat > "${STATE_DIR}/disk-uuids-${pool}.txt" <<EOF
initialized=true initialized=true
timestamp=2024-12-29_14:00:00 timestamp=2024-12-29_14:00:00
@ -246,6 +247,7 @@ create_critical_error_file() {
local pool="$1" local pool="$1"
local epoch="${2:-${TEST_CURRENT_EPOCH:-1735481400}}" local epoch="${2:-${TEST_CURRENT_EPOCH:-1735481400}}"
mkdir -p "${STATE_DIR}"
cat > "${STATE_DIR}/critical-errors-${pool}.txt" <<EOF cat > "${STATE_DIR}/critical-errors-${pool}.txt" <<EOF
timestamp=2024-12-29_14:00:00 timestamp=2024-12-29_14:00:00
epoch=${epoch} epoch=${epoch}