FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] generic/317,318: fail gracefully if userns not supported
@ 2014-06-13 21:33 Eric Sandeen
  2014-06-17  2:10 ` Dave Chinner
  2014-06-17  2:44 ` [PATCH V2] " Eric Sandeen
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Sandeen @ 2014-06-13 21:33 UTC (permalink / raw)
  To: fstests

generic/317 and generic/318 fail un-gracefully on older kernels
which don't support userns; fix that by running a simple test
as a prerequisite and fail gracefully if needed.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

diff --git a/tests/generic/317 b/tests/generic/317
index e016a42..8919db2 100755
--- a/tests/generic/317
+++ b/tests/generic/317
@@ -56,6 +56,8 @@ _supported_os Linux
 [ -x $nsexec  ] || _notrun "$nsexec executable not found"
 [ -x $lstat64 ] || _notrun "$lstat64 executable not found"
 
+$nsexec -U true 2>/dev/null || _notrun "user namespaces not supported by this kernel"
+
 rm -f $seqres.full
 
 _require_scratch
diff --git a/tests/generic/318 b/tests/generic/318
index 0bfbba0..0212712 100755
--- a/tests/generic/318
+++ b/tests/generic/318
@@ -57,6 +57,8 @@ _supported_os Linux
 
 [ -x $nsexec ] || _notrun "$nsexec executable not found"
 
+$nsexec -U true 2>/dev/null || _notrun "user namespaces not supported by this kernel"
+
 rm -f $seqres.full
 
 _require_scratch


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-17  7:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-13 21:33 [PATCH] generic/317,318: fail gracefully if userns not supported Eric Sandeen
2014-06-17  2:10 ` Dave Chinner
2014-06-17  2:44 ` [PATCH V2] " Eric Sandeen
2014-06-17  7:46   ` Lukáš Czerner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox