Skip to content

Commit d4f545a

Browse files
committed
ci: seed firebird.log with content so get_log() tests pass
1 parent 44b7bb7 commit d4f545a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ jobs:
6868
$initDb = New-FirebirdDatabase -Database (Join-Path $env:FB_PATH 'init.fdb') -Environment $env:FB_PATH
6969
"CREATE USER SYSDBA PASSWORD 'masterkey';" | Invoke-FirebirdIsql -Database $initDb -Environment $env:FB_PATH
7070
Remove-FirebirdDatabase -Database $initDb -Force
71-
# Create empty firebird.log so get_log() service API calls succeed
72-
New-Item -ItemType File -Path (Join-Path $env:FB_PATH 'firebird.log') -Force | Out-Null
71+
# Seed firebird.log so get_log() service API calls return non-empty content
72+
# (Firebird does not write startup messages in this mode; tests assert log is non-empty)
73+
"Firebird`tServer started" | Out-File -FilePath (Join-Path $env:FB_PATH 'firebird.log') -Encoding utf8 -NoNewline:$false
7374
# Start Firebird server
7475
Start-FirebirdInstance -Environment $env:FB_PATH | Write-Output
7576

0 commit comments

Comments
 (0)