You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2017/07/31 16:56:10 UTC
svn commit: r1803556 -
/subversion/branches/addremove/subversion/tests/cmdline/addremove_tests.py
Author: stsp
Date: Mon Jul 31 16:56:09 2017
New Revision: 1803556
URL: http://svn.apache.org/viewvc?rev=1803556&view=rev
Log:
On the addremove branch: Add a regression test.
* subversion/tests/cmdline/addremove_tests.py
(addremove_ignore): Verify that a file which matches the global-ignores
list is not added by 'svn addremove'.
(test_list): Add new test.
Modified:
subversion/branches/addremove/subversion/tests/cmdline/addremove_tests.py
Modified: subversion/branches/addremove/subversion/tests/cmdline/addremove_tests.py
URL: http://svn.apache.org/viewvc/subversion/branches/addremove/subversion/tests/cmdline/addremove_tests.py?rev=1803556&r1=1803555&r2=1803556&view=diff
==============================================================================
--- subversion/branches/addremove/subversion/tests/cmdline/addremove_tests.py (original)
+++ subversion/branches/addremove/subversion/tests/cmdline/addremove_tests.py Mon Jul 31 16:56:09 2017
@@ -83,12 +83,28 @@ def basic_addremove(sbox):
svntest.actions.run_and_verify_status(wc_dir, expected_output)
+def addremove_ignore(sbox):
+ "addremove ignores files matching global-ignores"
+
+ sbox.build()
+ wc_dir = sbox.wc_dir
+
+ # Add an unversioned file which matches the global ignores list.
+ newfile_path = sbox.ospath('A/newfile.o')
+ svntest.main.file_append(newfile_path, 'This is an ignored file\n')
+
+ svntest.actions.run_and_verify_svn(None, [], 'addremove', wc_dir)
+
+ expected_output = svntest.actions.get_virginal_state(wc_dir, 1)
+ svntest.actions.run_and_verify_status(wc_dir, expected_output)
+
########################################################################
# Run the tests
# list all tests here, starting with None:
test_list = [ None,
basic_addremove,
+ addremove_ignore,
]
if __name__ == '__main__':