(t *testing.T, path string)
| 478 | } |
| 479 | |
| 480 | // Log should contain our commit message. |
| 481 | logOut := gitCmd(t, mountPath, "log", "--oneline", "-1") |
| 482 | if !strings.Contains(logOut, "e2e commit test") { |
| 483 | t.Fatalf("expected commit message in log, got %q", logOut) |
| 484 | } |
| 485 | |
| 486 | // File content should still be readable (now served from the base |
| 487 | // snapshot after overlay reconciliation removed the entry). |
| 488 | got := readFileStr(t, commitFile) |
| 489 | if got != "committed content\n" { |
| 490 | t.Fatalf("expected 'committed content\\n', got %q", got) |
no test coverage detected