Skip to content

Commit dfffec9

Browse files
author
Mrunal Patel
authored
Merge pull request #394 from Mashimiao/local-val-add-err-catch
add error catch
2 parents def2f30 + a7436ee commit dfffec9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

validation/validation_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ func runtimeValidate(runtime string, g *generate.Generator) error {
5151

5252
// Copy the runtimetest binary to the rootfs
5353
err = fileutils.CopyFile("../runtimetest", filepath.Join(bundleDir, "runtimetest"))
54+
if err != nil {
55+
return err
56+
}
5457

5558
// Generate test configuration
5659
err = g.SaveToFile(filepath.Join(bundleDir, "config.json"), generate.ExportOptions{})

0 commit comments

Comments
 (0)