mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Fix function call
Make it skip if rkt is not installed
This commit is contained in:
@@ -19,13 +19,15 @@ func QemuCompatible(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func RktCompatible(t *testing.T) bool {
|
||||
func RktCompatible(t *testing.T) {
|
||||
if runtime.GOOS == "windows" || syscall.Geteuid() != 0 {
|
||||
t.Skip("Must be root on non-windows environments to run test")
|
||||
}
|
||||
// else see if rkt exists
|
||||
_, err := exec.Command("rkt", "version").CombinedOutput()
|
||||
return err == nil
|
||||
if err != nil {
|
||||
t.Skip("Must have rkt installed for rkt specific tests to run")
|
||||
}
|
||||
}
|
||||
|
||||
func MountCompatible(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user