Commit Graph

  • 2a0e09842e daemon_utest: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 18:22:15 -07:00
  • 941cd51297 type_conversions_utest: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 18:07:47 -07:00
  • aaa00a0a93 git_module_utest: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 18:05:21 -07:00
  • d31243e6b6 post_receive_one_utest: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 17:58:25 -07:00
  • b2e0e5856c utils_utest: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 17:56:17 -07:00
  • 142688b919 check_update_utest: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 17:15:20 -07:00
  • 82b2d1217a abstractupdate_utest: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 17:02:37 -07:00
  • 44cf776dd2 create_scratch_dir_twice: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 16:46:29 -07:00
  • 40af43817f wrong_name_for_git_config: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 16:15:16 -07:00
  • 84a3fd671e Remove support for $HOME/.no_cvs_check file Joel Brobecker 2021-06-27 13:20:35 -07:00
  • 04f90182ef max_commit_emails_ignored: Remove creation of .no_cvs_check file Joel Brobecker 2021-06-27 13:17:19 -07:00
  • b4de7b63b2 logger_error: Make bad-log script compatible with Python 3.x Joel Brobecker 2021-06-27 13:04:29 -07:00
  • 149dc10050 TestCase: Add support for unit testing via script as separate process Joel Brobecker 2021-06-27 12:53:55 -07:00
  • 9c970a4716 format testsuite/tests/* with black, include them in pre-commit checks Joel Brobecker 2021-06-27 09:48:03 -07:00
  • e50b4a23bc Introduce a TestCase.run "method" (for transition to pytest) Joel Brobecker 2021-06-25 19:56:08 -07:00
  • 2132e6fb4a Rename "self" parameter to "testcase" in all our testcases Joel Brobecker 2021-06-25 19:17:23 -07:00
  • 54455ff29f Remove all remaining calls to unittest.TestCase.assertTrue Joel Brobecker 2021-06-25 18:46:05 -07:00
  • ab67c06468 Remove most calls to unittest.TestCase.assertTrue in our testcases Joel Brobecker 2021-06-25 18:32:38 -07:00
  • 310d9c5e01 update_l_tag,update_tag: Remove code aimed at supporting old Git version Joel Brobecker 2021-06-20 09:59:03 -07:00
  • 59b4db2b7f headless_branch_combined/run_test.py: Remove useless import (os) Joel Brobecker 2021-06-20 09:43:03 -07:00
  • d02692a690 avoid mix of spaces and tabs in cvs_check.py scripts used in testcases Joel Brobecker 2021-06-19 17:57:04 -07:00
  • 31bb4e4867 flush stdout and stderr before forking Joel Brobecker 2021-06-19 11:44:56 -07:00
  • 9b449d8d4e annotated_tag/run_test.py: Remove unused import (re) Joel Brobecker 2021-06-19 07:54:27 -07:00
  • 3a5b99bb16 delete_tag/run_test.py: Remove unused import (re) Joel Brobecker 2021-06-19 07:50:11 -07:00
  • cf86204196 delete_tag_not_allowed: Rename test_xxx method to match testing objective Joel Brobecker 2021-06-19 07:39:27 -07:00
  • 95b6ebdaea delete_tag_not_allowed/run_test.py: Remove unused import (re) Joel Brobecker 2021-06-19 07:38:23 -07:00
  • c9bbac817c git.diff_tree: Remove support for **kwargs Joel Brobecker 2021-06-12 09:43:27 -07:00
  • 18254bffeb testsuite/coverage.sh: Add "pragma: py3-only" to coverage exclude lines Joel Brobecker 2021-06-12 08:50:56 -07:00
  • 64549c65ae testsuite/coverage.rc: Delete this file (auto-generated) Joel Brobecker 2021-06-12 08:50:41 -07:00
  • a83208e5a1 testsuite/coverage.sh: Use coverage.rc during report generation Joel Brobecker 2021-06-12 08:50:23 -07:00
  • bd94624cec style_check_commit: Convert to tuple return value from call to "filter" Joel Brobecker 2021-06-12 08:50:06 -07:00
  • 8de30044a4 .pre-commit-config.yaml: Update to black version 21.5b1 Joel Brobecker 2021-06-12 08:45:17 -07:00
  • cb041c2ec9 .pre-commit-config.yaml: Switch to flake8 version 3.9.1 Joel Brobecker 2021-06-12 08:41:59 -07:00
  • 987d0692f0 style_check_files: Allow "filename_list" param to be any kind of iterable Joel Brobecker 2021-06-05 19:14:39 -07:00
  • 70335554e4 Access exception arguments through "args" attribute (for Python 3.x) Joel Brobecker 2021-06-05 19:12:22 -07:00
  • 334fe1aaf4 check_fast_forward: Minor test rewrite to avoid string comparison Joel Brobecker 2021-06-05 19:07:41 -07:00
  • eaef13cfb5 simplify "diff" section computation in commit emails Joel Brobecker 2021-06-05 17:32:18 -07:00
  • 34950804d3 Simplify git.commit_subject Joel Brobecker 2021-06-04 17:04:34 -07:00
  • 8fb27b46f4 multiline_config_utest: Remove use of gnatpython.fileutils.diff Joel Brobecker 2021-06-04 14:09:46 -07:00
  • 0ec662b674 multiline_config_utest/run_test.py: Reformat with black Joel Brobecker 2021-06-04 14:02:21 -07:00
  • 779602b325 testsuites/bin/{pack,unpack}-test-repos: Remove use of gnatpython.ex.Run Joel Brobecker 2021-06-04 13:46:52 -07:00
  • 6cc7fe71d3 replace gnatpython.file.mv by shutil.rmtree Joel Brobecker 2021-06-04 13:29:33 -07:00
  • d50cc11868 Use iso-8859-15 instead of iso-8859-1 when guessing the encoding Joel Brobecker 2021-05-28 14:48:49 -07:00
  • a1ab32afb3 Remove assertion in type_conversions/to_tuple (Python3 prep) Joel Brobecker 2021-05-03 05:17:41 -07:00
  • fe24b59970 always send all emails using a UTF-8 charset Joel Brobecker 2021-05-03 05:12:51 -07:00
  • df5a9631bd updates/emails.py: Remove use of string.strip function Joel Brobecker 2021-04-25 17:36:31 +04:00
  • 54877f91a3 testsuite: change the testcase filename from "test.py" to "run_test.py" Joel Brobecker 2021-04-18 18:57:38 +04:00
  • b257af6fd2 Add pre-commit configuration, running black and flake8 Joel Brobecker 2021-04-18 15:23:11 +04:00
  • a075b1653e reformat all the code using black Joel Brobecker 2021-04-18 14:59:01 +04:00
  • dd84bfbeb2 replace "assert False" statements by "raise AssertionError"... Joel Brobecker 2021-04-18 14:50:21 +04:00
  • 119b998c85 hooks/type_conversions.py: Remove unnecessary call to tuple Joel Brobecker 2021-04-18 14:49:13 +04:00
  • 17ab129046 get_testcases: Use "_" instead of unused variable as loop control variable Joel Brobecker 2021-04-18 14:47:53 +04:00
  • 784e71d0b4 hooks/pre_commit_checks.py: Avoid unnecessary list comprehension Joel Brobecker 2021-04-18 14:47:15 +04:00
  • 35e7ad4add replace use of dict.iteritems with dict.items instead Joel Brobecker 2021-04-18 14:45:39 +04:00
  • 7f35a1c3c7 Add gerrit review notes to hooks.no-emails default list Joel Brobecker 2021-02-27 18:39:31 +04:00
  • d534e3bec1 default of tuple config option ignored when used in project's config Joel Brobecker 2021-02-27 17:56:13 +04:00
  • 1f9082567e fix UnicodeEncodeError crash while calling file-commit-cmd hook Joel Brobecker 2021-01-11 12:53:53 +04:00
  • 583e61d219 commit_filer_non_ascii_{body,diff,subject}: New testcases Joel Brobecker 2021-01-11 12:52:55 +04:00
  • 17a6b68842 TC24-018__commit_non_ascii_filename: New testcase Joel Brobecker 2021-01-11 12:51:17 +04:00
  • 3710a2ce70 fast_forward.py: Make except handler compatible with Python 3.x Joel Brobecker 2020-11-23 13:48:49 +04:00
  • 50cbf3ad89 testsuite/bin/stdout-logger: Replace print statement by print function Joel Brobecker 2020-11-23 13:46:01 +04:00
  • cf77ce5dc7 testsuite/bin/run-testcase: Use print function instead of print statement Joel Brobecker 2020-11-23 13:43:53 +04:00
  • b476291a83 testsuite/bin/unpack-test-repos: Fix (Python-3.x) flake8 violations Joel Brobecker 2020-11-23 13:41:32 +04:00
  • 35949ce78c testsuite/bin/pack-test-repos: Fix all (Python-3.x) flake8 errors Joel Brobecker 2020-11-23 13:40:38 +04:00
  • 11b26001d0 update.py: Make except handler compatible with Python 3.x Joel Brobecker 2020-11-23 13:50:16 +04:00
  • 24a81783d7 hooks/git.py: Replace reference to "basestring" by "str" Joel Brobecker 2020-11-23 13:51:42 +04:00
  • e1ed1d1b3d hooks/utils.py: Allow parsing with Python-3 version of flake8 Joel Brobecker 2020-11-23 12:26:47 +04:00
  • 7ce38d4803 testsuite/lib/utils.py: Fix various flake8 violations Joel Brobecker 2020-11-23 12:30:33 +04:00
  • 53d4420d91 hooks/daemon.py: Allow parsing with Python-3 version of flake8 Joel Brobecker 2020-11-23 12:24:17 +04:00
  • 8278dd0b81 Merge "Convert print statements to print function" pull request Joel Brobecker 2020-11-23 12:16:21 +04:00
  • a2909b2c8d Convert print statements to print function github/pull/17 Simon Marchi 2020-11-22 16:48:56 -05:00
  • 23c202e641 fix email sending crash when repository uses commit-email-formatter hook Joel Brobecker 2020-11-22 11:16:48 +04:00
  • ca6511eaf3 TB15-003__commit_email_formatter_non_ascii_subject: New testcase. Joel Brobecker 2020-11-22 11:01:58 +04:00
  • a1be008ede emails.py: replace print statement by "call" to print function Joel Brobecker 2020-11-22 10:59:26 +04:00
  • ee21c3e032 TB15-003__non_ascii_char_in_diff: New testcase. Joel Brobecker 2020-11-15 19:35:24 +04:00
  • ac8f4d6a54 update.py crash when not commits to style-check and combined-style-checking Joel Brobecker 2020-10-21 17:14:33 +04:00
  • e424e08c0e a_tag_before_commit: Adjust erroneous comment Joel Brobecker 2020-10-21 17:11:42 +04:00
  • e536bf865a centralize the computation of the list of commits to apply checks on Joel Brobecker 2020-10-02 10:41:25 -07:00
  • 8b48cfec4f catch merge commits masquerading as revert commits Joel Brobecker 2020-10-02 10:18:47 -07:00
  • 35192940c7 AbstractUpdate.pre_commit_checks: Remove unnecessary early return Joel Brobecker 2020-10-02 10:04:34 -07:00
  • f1414aed4a Do not call the hooks.commit-extra-checker for pre-existing commits Joel Brobecker 2020-10-02 07:22:02 -07:00
  • fe8c5b5009 Add support for new config option: hooks.max-filepath-length Joel Brobecker 2020-09-11 10:47:51 -07:00
  • 3df0ef1658 CommitInfo.all_files: New method Joel Brobecker 2020-09-02 17:16:40 -07:00
  • 111da4bad3 Add support for new config option: hooks.no-rh-character-range-check Joel Brobecker 2020-08-30 09:23:10 -07:00
  • a28f519d07 not_ISO_8859-15: Add bad-after-subject branch to bare repository Joel Brobecker 2020-08-29 14:56:45 -07:00
  • 19f08564f1 not_ISO_8859-15: merge all testing into a single method Joel Brobecker 2020-08-29 14:20:55 -07:00
  • a62e4bcad0 Add support for new config option hooks.email-new-commits-only Joel Brobecker 2020-08-15 14:14:51 -07:00
  • da02784ca7 Move check for hooks.no-emails config to __set_send_email_p_attr Joel Brobecker 2020-08-15 11:25:25 -07:00
  • 632ea61e68 Update incorrect comment in AbstractUpdate.__check_max_commit_emails Joel Brobecker 2020-08-15 10:55:06 -07:00
  • 1457710a9e clarify the effect of the `no-precommit-check' string in commit rev logs Joel Brobecker 2020-08-12 14:25:35 -07:00
  • 2ebb722e13 Allow projects to customzie the contents of commit emails Joel Brobecker 2020-08-10 06:35:24 -07:00
  • 4c982600a3 AbstractUpdate.commit_data_for_hook: New method to factorize code Joel Brobecker 2020-08-07 18:30:02 -07:00
  • ff8859e9ac Incorrect Content-Type charset for emails with non-ascii chars in email body Joel Brobecker 2020-07-26 15:16:49 -07:00
  • 3e7cb792fe move code guessing encoding into own new function (guess_encoding) Joel Brobecker 2020-07-26 10:08:37 -07:00
  • 1109d5c75e README.md: Fix thinko in name of hooks.commit-extra-checker option Joel Brobecker 2020-07-26 08:45:29 -07:00
  • 1de3eb14c7 Add support for new config option hooks.commit-extra-check Joel Brobecker 2020-07-19 19:22:29 -07:00
  • 07642e1591 Factorize code to call third-party hooks even more Joel Brobecker 2020-07-19 09:10:56 -07:00
  • 9db584955e pass the RefKind and object_type when creating Update objects Joel Brobecker 2020-07-18 16:29:13 -07:00
  • 564edb15d3 rename CommitInfo's author property to full_author_email (clearer) Joel Brobecker 2020-07-12 16:54:08 -07:00
  • f825154a6b CommitInfo: Keep the author's name and email address separate Joel Brobecker 2020-07-12 16:46:16 -07:00