Patchwork [04,of,11] test-revert: add case where file exist neither in "base" nor in "parent"

login
register
mail settings
Submitter Pierre-Yves David
Date Aug. 12, 2014, 7:43 p.m.
Message ID <afb24257caa533fb3f0d.1407872624@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/5360/
State Accepted
Headers show

Comments

Pierre-Yves David - Aug. 12, 2014, 7:43 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1403884929 -7200
#      Fri Jun 27 18:02:09 2014 +0200
# Node ID afb24257caa533fb3f0d049f00fe3d9c06e3caf0
# Parent  8d1d22316d6e18ad40aa1c467c364670f7d623ab
test-revert: add case where file exist neither in "base" nor in "parent"

Patch

diff --git a/tests/test-revert.t b/tests/test-revert.t
--- a/tests/test-revert.t
+++ b/tests/test-revert.t
@@ -441,10 +441,12 @@  Write the python script to disk
   >     'modified': ['base', 'parent'],
   >     # added: file is missing from base and added in parent
   >     'added': [None, 'parent'],
   >     # removed: file exist in base but is removed from parent
   >     'removed': ['base', None],
+  >     # file exist neither in base not in parent
+  >     'missing': [None, None],
   > }
   > 
   > # content of file in working copy
   > wccontent = {
   >     # clean: wc content is the same as parent
@@ -493,10 +495,11 @@  Write the python script to disk
 check list of planned files
 
   $ python gen-revert-cases.py filelist
   added_clean
   clean_clean
+  missing_clean
   modified_clean
   removed_clean
 
 Script to make a simple text version of the content
 ---------------------------------------------------
@@ -648,10 +651,13 @@  revert all files individually and check 
   no changes needed to added_clean
   
   ### revert for: clean_clean
   no changes needed to clean_clean
   
+  ### revert for: missing_clean
+  missing_clean: no such file in rev * (glob)
+  
   ### revert for: modified_clean
   no changes needed to modified_clean
   
   ### revert for: removed_clean
   removed_clean: no such file in rev * (glob)
@@ -689,10 +695,13 @@  Misbehavior:
   > done
   ### revert for: added_clean
   
   ### revert for: clean_clean
   
+  ### revert for: missing_clean
+  missing_clean: no such file in rev * (glob)
+  
   ### revert for: modified_clean
   
   ### revert for: removed_clean