Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,17 @@ downloads/stage3-amd64-current.tar.bz2: get-stage3.sh
clean:
rm -f ocitools runtimetest downloads/*
sudo rm -rf rootfs

.PHONY: test .gofmt .govet .golint

test: .gofmt .govet .golint

.gofmt:
go fmt ./...

.govet:
go vet -x ./...

.golint:
golint ./...

2 changes: 1 addition & 1 deletion cmd/runtimetest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func validateCapabilities(spec *specs.LinuxSpec, rspec *specs.LinuxRuntimeSpec)
if expectedSet != actuallySet {
if expectedSet {
return fmt.Errorf("Expected Capability %v not set for process", cap.String())
}
}
return fmt.Errorf("Unexpected Capability %v set for process", cap.String())
}
}
Expand Down