Skip to content

Commit

Permalink
fix: updates the permission for the keploy dir while exiting the test (
Browse files Browse the repository at this point in the history
…#1535)

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
  • Loading branch information
re-Tick committed Feb 8, 2024
1 parent dfdc59a commit a09513d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,14 @@ func (t *Test) GetCmd() *cobra.Command {
IgnoreOrdering: ignoreOrdering,
PassthroughHosts: passThroughHosts,
}, enableTele)

cmd := exec.Command("sudo", "chmod", "-R", "777", path)
err = cmd.Run()
if err != nil {
t.logger.Error("failed to set the permission of keploy directory", zap.Error(err))
return err
}

}

return nil
Expand Down

0 comments on commit a09513d

Please sign in to comment.