Skip to content

Commit

Permalink
cmd: add file to homedir for fio (#3212)
Browse files Browse the repository at this point in the history
Add file for test and do not use a dir (the homedir in the default scenario).

category: bug
ticket: none
  • Loading branch information
KaloyanTanev authored Aug 1, 2024
1 parent d5a59fa commit 101b07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/testperformance.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func fioCommand(ctx context.Context, filename string, blocksize int, operation s
//nolint:gosec
cmd, err := exec.CommandContext(ctx, "fio",
"--name=fioTest",
fmt.Sprintf("--filename=%v", filename),
fmt.Sprintf("--filename=%v/fiotest", filename),

Check warning on line 224 in cmd/testperformance.go

View check run for this annotation

Codecov / codecov/patch

cmd/testperformance.go#L224

Added line #L224 was not covered by tests
fmt.Sprintf("--size=%vMb", diskOpsMBsTotal/diskOpsNumOfJobs),
fmt.Sprintf("--blocksize=%vk", blocksize),
fmt.Sprintf("--numjobs=%v", diskOpsNumOfJobs),
Expand Down

0 comments on commit 101b07d

Please sign in to comment.