Fix snapshot file parsing in tests

This commit is contained in:
thePR0M3TH3AN
2025-05-20 20:18:21 -04:00
parent 2adb7fd063
commit 522c80d122

View File

@@ -269,7 +269,7 @@ test_marlin_demo_flow() {
log_info "Running backup and restore..." log_info "Running backup and restore..."
snap_output=$(run_cmd "${marlin_cmd}" backup) snap_output=$(run_cmd "${marlin_cmd}" backup)
snap_file=$(echo "${snap_output}" | awk '{print $NF}') snap_file=$(echo "${snap_output}" | tail -n 1 | awk '{print $NF}')
log_info "Backup created: ${snap_file}" log_info "Backup created: ${snap_file}"
if [ -z "${MARLIN_DB_PATH}" ]; then if [ -z "${MARLIN_DB_PATH}" ]; then