added test for output verification

This commit is contained in:
Damandeep Singh
2025-02-28 11:35:17 +05:30
parent 5ce7ea7aa0
commit f7484a032d

View File

@@ -155,6 +155,11 @@ EOF
dolt sql -q "show databases;"
stop_sql_server
# Assert that log is in JSON format (checking if logs contain `{...}`)
if ! grep -q '^{.*}$' log.txt; then
exit 1
fi
# assert that logformat in yaml config is not case sensitive
cat >config.yml <<EOF
log_format: teXt