diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-18 22:04:40 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-26 20:47:31 +0000 |
commit | 9ff4f40094c5863951c965f6cdf5844843a3fe1b (patch) | |
tree | 95d71f4711f4f1a1a598559ce5bba683d164dd51 /libpod/version.go | |
parent | a0575d6e469b15d9cf239dcddabe03fdb7059afd (diff) | |
download | podman-9ff4f40094c5863951c965f6cdf5844843a3fe1b.tar.gz podman-9ff4f40094c5863951c965f6cdf5844843a3fe1b.tar.bz2 podman-9ff4f40094c5863951c965f6cdf5844843a3fe1b.zip |
Skip unit tests which require storage when not running as root
On macOS NewImageRuntimeFromOptions fails with chown EPERM because the
"vfs" driver tries to chown its home to root:root 0700; in fact running
as root seems to be a generic requirement. So, skip the tests if not
running as root.
(This could maybe benefit from an extra state, maybe an environment
variable like RUNNING_IN_CI, to make sure the tests are actually
run often enough.)
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1115
Approved by: rhatdan
Diffstat (limited to 'libpod/version.go')
0 files changed, 0 insertions, 0 deletions