Skip to content

Commit

Permalink
Resolve Changes
Browse files Browse the repository at this point in the history
Signed-off-by: Sankalp Acharya <[email protected]>
  • Loading branch information
sankalp-12 committed Apr 26, 2023
1 parent a4c85d7 commit 5b080af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checkpointctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func show(cmd *cobra.Command, args []string) error {
showMounts = true
}
if fullPaths && !showMounts {
return fmt.Errorf("Cannot use --full-paths without --mounts/-all option")
return fmt.Errorf("Cannot use --full-paths without --mounts/--all option")
}

input := args[0]
Expand Down
4 changes: 2 additions & 2 deletions test/checkpointctl.bats
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ function teardown() {
[[ ${lines[17]} == *"446571 us"* ]]
}

@test "Run checkpointctl show with tar file and missing --mounts/-all and --full-paths" {
@test "Run checkpointctl show with tar file and missing --mounts/--all and --full-paths" {
cp test/config.dump "$TEST_TMP_DIR1"
cp test/spec.dump "$TEST_TMP_DIR1"
mkdir "$TEST_TMP_DIR1"/checkpoint
( cd "$TEST_TMP_DIR1" && tar cf "$TEST_TMP_DIR2"/test.tar . )
checkpointctl show "$TEST_TMP_DIR2"/test.tar --full-paths
[ "$status" -eq 1 ]
[[ ${lines[0]} == *"Error: Cannot use --full-paths without --mounts/-all option"* ]]
[[ ${lines[0]} == *"Error: Cannot use --full-paths without --mounts/--all option"* ]]
}

@test "Run checkpointctl show with tar file with valid config.dump and valid spec.dump (CRI-O) and no checkpoint directory" {
Expand Down

0 comments on commit 5b080af

Please sign in to comment.