summaryrefslogtreecommitdiff
path: root/integrationtests/cleanup_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-12 22:39:06 +0200
committerPaul Buetow <paul@buetow.org>2026-03-12 22:39:06 +0200
commit13e7970afb3eeac69f82df833f030711e5cf12ec (patch)
tree098c4fb8c5a8c8f27547f03f40c9fee0be63fe35 /integrationtests/cleanup_test.go
parent1b21e818a69bf73fde3ca60f89d2dc82a79fd605 (diff)
internal: embed BPF object into ior binary
Diffstat (limited to 'integrationtests/cleanup_test.go')
-rw-r--r--integrationtests/cleanup_test.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/integrationtests/cleanup_test.go b/integrationtests/cleanup_test.go
index 18a0531..316c1b1 100644
--- a/integrationtests/cleanup_test.go
+++ b/integrationtests/cleanup_test.go
@@ -80,8 +80,7 @@ func TestCleanupOutputDirContainsOnlyExpectedFiles(t *testing.T) {
for _, e := range entries {
name := e.Name()
validSuffix := strings.HasSuffix(name, ".ior.zst") ||
- strings.HasSuffix(name, ".svg") ||
- name == "ior.bpf.o" // symlink created by startIor
+ strings.HasSuffix(name, ".svg")
if !validSuffix {
t.Errorf("unexpected file in output dir: %s", name)
}
@@ -172,11 +171,8 @@ func TestCleanupOutputDirEmptyAfterIorFailure(t *testing.T) {
t.Fatalf("read output dir: %v", err)
}
- // Only the BPF symlink should exist; ior produced no output.
- for _, e := range entries {
- if e.Name() != "ior.bpf.o" {
- t.Errorf("unexpected file in output dir after ior failure: %s", e.Name())
- }
+ if len(entries) != 0 {
+ t.Fatalf("expected empty output dir after ior failure, found %d entries", len(entries))
}
}