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 5, 2024
1 parent 1d877c1 commit ce4111c
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 @@ -84,7 +84,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 @@ -130,7 +130,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)
assert.Equal(t, http.StatusOK, rsp.StatusCode)
Expand Down

0 comments on commit ce4111c

Please sign in to comment.