Linux NFS development
 help / color / mirror / Atom feed
* [pynfs RFC PATCH] testserver.py: special-case the "all" flag
@ 2023-02-22 18:20 Jeff Layton
  2023-02-23 15:19 ` J. Bruce Fields
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Layton @ 2023-02-22 18:20 UTC (permalink / raw)
  To: bfields, dai.ngo; +Cc: linux-nfs

The READMEs for v4.0 and v4.1 are inconsistent here. For v4.0, the "all"
flag is supposed to run all of the "standard" tests. For v4.1 "all" is
documented to run all of the tests, but it actually doesn't since not
every tests has "all" in its FLAGS: field.

I move that we change this. If I say that I want to run "all", then I
really do want to run _all_ of the tests. Ensure that every test has the
"all" flag set.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 nfs4.1/testmod.py | 2 ++
 1 file changed, 2 insertions(+)

If this is unacceptable, then an alternative could be to add a new
(similarly special-cased) "everything" flag.

diff --git a/nfs4.1/testmod.py b/nfs4.1/testmod.py
index 11e759d673fd..7b3bac543084 100644
--- a/nfs4.1/testmod.py
+++ b/nfs4.1/testmod.py
@@ -386,6 +386,8 @@ def createtests(testdir):
     for t in tests:
 ##         if not t.flags_list:
 ##             raise RuntimeError("%s has no flags" % t.fullname)
+        if "all" not in t.flags_list:
+            t.flags_list.append("all")
         for f in t.flags_list:
             if f not in flag_dict:
                 flag_dict[f] = bit
-- 
2.39.2


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

end of thread, other threads:[~2023-02-23 22:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-22 18:20 [pynfs RFC PATCH] testserver.py: special-case the "all" flag Jeff Layton
2023-02-23 15:19 ` J. Bruce Fields
2023-02-23 16:20   ` Frank Filz
2023-02-23 16:21   ` Chuck Lever III
2023-02-23 16:26     ` Frank Filz
2023-02-23 17:10       ` Jeff Layton
2023-02-23 17:59         ` Mkrtchyan, Tigran
2023-02-23 22:41         ` Frank Filz

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