record stop now prints output path of recording

record directory command added
This commit is contained in:
2025-05-27 01:27:30 +01:00
parent c27a5ea6c5
commit f94ac1ca0c
2 changed files with 40 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"bytes"
"strings"
"testing"
"time"
)
@@ -45,7 +46,7 @@ func TestRecordStartStatusStop(t *testing.T) {
if err != nil {
t.Fatalf("Failed to stop recording: %v", err)
}
if out.String() != "Recording stopped successfully.\n" {
if !strings.Contains(out.String(), "Recording stopped successfully. Output file:") {
t.Fatalf("Expected output to be 'Recording stopped successfully.', got '%s'", out.String())
}
// Reset output buffer for the next command