diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
commit | cf46733632c7279a9fd0fe6ce26f9185a4ae82a9 (patch) | |
tree | da27775a2161723ef342e91af41a8b51fedef405 /subversion/tests/cmdline/getopt_tests.py | |
parent | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (diff) | |
download | subversion-tarball-master.tar.gz |
subversion-1.9.7HEADsubversion-1.9.7master
Diffstat (limited to 'subversion/tests/cmdline/getopt_tests.py')
-rwxr-xr-x | subversion/tests/cmdline/getopt_tests.py | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/subversion/tests/cmdline/getopt_tests.py b/subversion/tests/cmdline/getopt_tests.py index a258c6b..f4e6398 100755 --- a/subversion/tests/cmdline/getopt_tests.py +++ b/subversion/tests/cmdline/getopt_tests.py @@ -74,6 +74,15 @@ del_lines_res = [ re.compile(r" - with Cyrus SASL authentication"), re.compile(r" - using serf \d+\.\d+\.\d+"), re.compile(r"\* fs_(base|fs) :"), + + # Remove 'svn --version' list of platform-specific + # auth cache providers. + re.compile(r"\* Wincrypt cache.*"), + re.compile(r"\* Plaintext cache.*"), + re.compile(r"\* Gnome Keyring"), + re.compile(r"\* GPG-Agent"), + re.compile(r"\* Mac OS X Keychain"), + re.compile(r"\* KWallet \(KDE\)"), ] # This is a list of lines to search and replace text on. @@ -90,13 +99,6 @@ rep_lines_res = [ # In 'svn --version --quiet', we print only the version # number in a single line. (re.compile(r'^\d+\.\d+\.\d+(-[a-zA-Z0-9]+)?$'), 'X.Y.Z\n'), - # 'svn --help' has a line with the version number. - # It can vary, for example: - # "Subversion command-line client, version 1.1.0." - # "Subversion command-line client, version 1.1.0-dev." - (re.compile(r'Subversion command-line client, ' - 'version \d+\.\d+\.\d+(.|-[a-zA-Z0-9]+\.)$'), - 'Subversion command-line client, version X.Y.Z.'), ] # This is a trigger pattern that selects the secondary set of @@ -221,6 +223,18 @@ def getopt_help_bogus_cmd(sbox): "run svn help bogus-cmd" run_one_test(sbox, 'svn_help_bogus-cmd', 'help', 'bogus-cmd') +def getopt_config_option(sbox): + "--config-option's spell checking" + sbox.build(create_wc=False, read_only=True) + expected_stderr = '.*W205000.*did you mean.*' + expected_stdout = svntest.verify.AnyOutput + svntest.actions.run_and_verify_svn2(expected_stdout, expected_stderr, 0, + 'info', + '--config-option', + 'config:miscellanous:diff-extensions=' + + '-u -p', + sbox.repo_url) + ######################################################################## # Run the tests @@ -235,6 +249,7 @@ test_list = [ None, getopt_help, getopt_help_bogus_cmd, getopt_help_log_switch, + getopt_config_option, ] if __name__ == '__main__': |