You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Karl Fogel <kf...@newton.ch.collab.net> on 2002/12/09 14:47:19 UTC

Re: svn commit: rev 4040 - trunk/subversion/tests/clients/cmdline

kraai@tigris.org writes:
> * subversion/tests/clients/cmdline/stat_tests.py
>   (status_blank_for_ignored_file): New.

Maybe "unignored_file", since it passes the `--no-ignore' flag?  I
know that seems picky, but the current test name could be confusing to
someone who looks closely at the code.

(Sorry if I missed this in the first review.)

-K

> Modified: trunk/subversion/tests/clients/cmdline/stat_tests.py
> ==============================================================================
> --- trunk/subversion/tests/clients/cmdline/stat_tests.py	(original)
> +++ trunk/subversion/tests/clients/cmdline/stat_tests.py	Fri Dec  6 17:33:46 2002
> @@ -243,6 +243,33 @@
>    return 0
>  
>  
> +def status_blank_for_ignored_file(sbox):
> +  "status blank for ignored file"
> +
> +  if sbox.build():
> +    return 1
> +
> +  wc_dir = sbox.wc_dir
> +  was_cwd = os.getcwd()
> +
> +  os.chdir(wc_dir)
> +
> +  svntest.main.file_append('newfile', 'this is a new file')
> +  svntest.main.run_svn(None, 'propset', 'svn:ignore', 'newfile', '.')
> +  stat_output, err_output = svntest.main.run_svn(None, 'status', '--no-ignore',
> +                                                 '.')
> +  if err_output:
> +    return 1
> +  status = 1
> +  for line in stat_output:
> +    if re.match("  +newfile", line):
> +      status = 0
> +  
> +  os.chdir(was_cwd)
> +
> +  return status
> +
> +
>  ########################################################################
>  # Run the tests
>  
> @@ -255,6 +282,7 @@
>                status_missing_file,
>                status_type_change,
>                status_with_new_files_pending,
> +              status_blank_for_ignored_file,
>               ]
>  
>  if __name__ == '__main__':
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svn-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: svn-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org