summaryrefslogtreecommitdiff
path: root/integrationtests/helpers_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-26 08:50:12 +0200
committerPaul Buetow <paul@buetow.org>2026-02-26 08:50:12 +0200
commitad4d7fca20d80f71ccabef3281e3f80081f4db62 (patch)
tree03e9e13d86b17ae99ea91c3b5e344539e28ebf32 /integrationtests/helpers_test.go
parent4c34b9efcd539c819648c927d7e3f53220df8ad2 (diff)
Add byte assertions for read/write integration scenarios
Diffstat (limited to 'integrationtests/helpers_test.go')
-rw-r--r--integrationtests/helpers_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/integrationtests/helpers_test.go b/integrationtests/helpers_test.go
index 5f60f0f..feb7a55 100644
--- a/integrationtests/helpers_test.go
+++ b/integrationtests/helpers_test.go
@@ -49,6 +49,11 @@ func writeScript(t *testing.T, dir, name, content string) string {
func runScenario(t *testing.T, scenario string, expected []ExpectedEvent) {
t.Helper()
+ runScenarioResult(t, scenario, expected)
+}
+
+func runScenarioResult(t *testing.T, scenario string, expected []ExpectedEvent) (TestResult, int) {
+ t.Helper()
enableParallelIfRequested(t)
h := newTestHarness(t)
result, pid, err := h.Run(scenario, defaultDuration)
@@ -59,6 +64,7 @@ func runScenario(t *testing.T, scenario string, expected []ExpectedEvent) {
AssertNoUnexpectedPID(t, result, pid)
AssertNoUnexpectedComm(t, result, "ioworkload")
AssertEventsPresent(t, result, expected)
+ return result, pid
}
func enableParallelIfRequested(t *testing.T) {