test-revert: display the list of all generated cases
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 25 Jun 2014 17:24:18 +0100
changeset 22127 3163b8f8ff26
parent 22126 651b2149f1e7
child 22128 db23fb4e210d
test-revert: display the list of all generated cases This will help to track all existing cases. (still very simple now)
tests/test-revert.t
--- a/tests/test-revert.t	Fri Jun 27 16:08:09 2014 +0200
+++ b/tests/test-revert.t	Wed Jun 25 17:24:18 2014 +0100
@@ -460,7 +460,9 @@
   > content = []
   > for filename, ctxkey, wckey in combination:
   >     cc = ctxcontent[ctxkey]
-  >     if target == 'base':
+  >     if target == 'filelist':
+  >         print filename
+  >     elif target == 'base':
   >         content.append((filename, cc[0]))
   >     elif target == 'parent':
   >         content.append((filename, cc[1]))
@@ -477,6 +479,11 @@
   >     f.close()
   > EOF
 
+check list of planned files
+
+  $ python gen-revert-cases.py filelist
+  modified_clean
+
 Script to make a simple text version of the content
 ---------------------------------------------------