Skip to content

Commit

Permalink
add error catch
Browse files Browse the repository at this point in the history
Signed-off-by: Ma Shimiao <[email protected]>
  • Loading branch information
Ma Shimiao committed Jun 9, 2017
1 parent bbf9886 commit de1ad30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions validation/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ func runtimeValidate(runtime string, g *generate.Generator) error {

// Copy the runtimetest binary to the rootfs
err = fileutils.CopyFile("../runtimetest", filepath.Join(bundleDir, "runtimetest"))
if err != nil {
return err
}

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

0 comments on commit de1ad30

Please sign in to comment.