Skip to content

Commit

Permalink
osbuild-worker-executor: fix tar call for output
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Jun 6, 2024
1 parent f643e37 commit 63163c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/osbuild-worker-executor/handler_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func runOsbuild(buildDir string, control *controlJSON, output io.Writer) (string
"-C",
buildDir,
"-Scf",
filepath.Join(outputDir, "output.tar"),
filepath.Join(buildDir, "output.tar"),
"output",
)
out, err := cmd.CombinedOutput()
Expand Down
2 changes: 1 addition & 1 deletion cmd/osbuild-worker-executor/handler_build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ echo "fake-build-result" > %[1]s/build/output/image/disk.img
assert.Equal(t, "fake-build-result\n", string(body))

// check that the output tarball has the disk in it
endpoint = baseURL + "api/v1/result/output/output.tar"
endpoint = baseURL + "api/v1/result/output.tar"
rsp, err = http.Get(endpoint)
assert.NoError(t, err)
defer rsp.Body.Close()
Expand Down

0 comments on commit 63163c3

Please sign in to comment.