Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
  • Loading branch information
Two-Hearts committed Jan 10, 2025
1 parent ac5f3b7 commit 767e216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions test/e2e/internal/utils/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ import (
// VirtualHost is a virtualized host machine isolated by environment variable.
type VirtualHost struct {
Executor *ExecOpts

userDir string
env map[string]string
userDir string
env map[string]string
}

// NewVirtualHost creates a temporary user-level directory and updates
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/suite/command/blob/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ var _ = Describe("notation blob sign", func() {

It("with no permission to read the blob file", func() {
HostWithBlob(BaseOptions(), func(notation *utils.ExecOpts, blobPath string, vhost *utils.VirtualHost) {
blobDir := filepath.Dir(blobPath)
noPermissionBlobPath := filepath.Join(blobDir, "noPermissionBlob")
noPermissionBlobPath := filepath.Join(vhost.AbsolutePath(), "noPermissionBlob")
newBlobFile, err := os.Create(noPermissionBlobPath)
if err != nil {
Fail(err.Error())
Expand Down

0 comments on commit 767e216

Please sign in to comment.