You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ko...@apache.org on 2022/12/05 11:45:38 UTC
svn commit: r1905754 - /subversion/trunk/subversion/tests/cmdline/revert_tests.py
Author: kotkov
Date: Mon Dec 5 11:45:37 2022
New Revision: 1905754
URL: http://svn.apache.org/viewvc?rev=1905754&view=rev
Log:
In the revert_reexpand_keyword() test, use a helper to run the revert command.
This should be consistent with other tests in this file and should also test
the output of the command.
* subversion/tests/cmdline/revert_tests.py
(revert_reexpand_keyword): Use run_and_verify_revert().
Modified:
subversion/trunk/subversion/tests/cmdline/revert_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/revert_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/revert_tests.py?rev=1905754&r1=1905753&r2=1905754&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/revert_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/revert_tests.py Mon Dec 5 11:45:37 2022
@@ -291,7 +291,7 @@ def revert_reexpand_keyword(sbox):
svntest.main.file_write(newfile_path, unexpanded_contents)
# Revert the file. The keyword should reexpand.
- svntest.main.run_svn(None, 'revert', newfile_path)
+ run_and_verify_revert([newfile_path], [], [newfile_path])
# Verify that the keyword got re-expanded.
check_expanded(newfile_path)
@@ -324,7 +324,7 @@ def revert_reexpand_keyword(sbox):
'-m', "Shouldn't be committed")
# Revert the file. The file is not reverted!
- svntest.actions.run_and_verify_svn([], [], 'revert', newfile_path)
+ run_and_verify_revert([newfile_path], [], [])
#----------------------------------------------------------------------