Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cvise for openSUSE:Factory checked in at 2021-03-21 23:20:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cvise (Old) and /work/SRC/openSUSE:Factory/.cvise.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cvise" Sun Mar 21 23:20:26 2021 rev:29 rq:880299 version:2.3.0+git.20210320.0ff4a84 Changes: -------- --- /work/SRC/openSUSE:Factory/cvise/cvise.changes 2021-03-17 20:20:16.835344228 +0100 +++ /work/SRC/openSUSE:Factory/.cvise.new.2401/cvise.changes 2021-03-21 23:20:29.772741846 +0100 @@ -1,0 +2,6 @@ +Sat Mar 20 19:50:11 UTC 2021 - [email protected] + +- Update to version 2.3.0+git.20210320.0ff4a84: + * Use colordiff if available. + +------------------------------------------------------------------- Old: ---- cvise-2.3.0+git.20210317.2713400.tar.xz New: ---- cvise-2.3.0+git.20210320.0ff4a84.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cvise.spec ++++++ --- /var/tmp/diff_new_pack.cGsNhZ/_old 2021-03-21 23:20:30.424742070 +0100 +++ /var/tmp/diff_new_pack.cGsNhZ/_new 2021-03-21 23:20:30.428742071 +0100 @@ -17,7 +17,7 @@ Name: cvise -Version: 2.3.0+git.20210317.2713400 +Version: 2.3.0+git.20210320.0ff4a84 Release: 0 Summary: Super-parallel Python port of the C-Reduce License: BSD-3-Clause ++++++ cvise-2.3.0+git.20210317.2713400.tar.xz -> cvise-2.3.0+git.20210320.0ff4a84.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cvise-2.3.0+git.20210317.2713400/cvise/utils/testing.py new/cvise-2.3.0+git.20210320.0ff4a84/cvise/utils/testing.py --- old/cvise-2.3.0+git.20210317.2713400/cvise/utils/testing.py 2021-03-17 10:42:32.000000000 +0100 +++ new/cvise-2.3.0+git.20210320.0ff4a84/cvise/utils/testing.py 2021-03-20 20:44:38.000000000 +0100 @@ -8,6 +8,8 @@ import os.path import platform import shutil +import subprocess +import sys import tempfile import traceback @@ -161,10 +163,12 @@ self.orig_total_file_size = self.total_file_size self.cache = {} self.root = None - if not self.is_valid_test(self.test_script): raise InvalidInterestingnessTestError(self.test_script) + self.use_colordiff = (sys.stdout.isatty() and + subprocess.run('colordiff --version', shell=True, stdout=subprocess.DEVNULL).returncode == 0) + def create_root(self): self.root = tempfile.mkdtemp(prefix=self.TEMP_PREFIX) logging.debug('Creating pass root folder: %s' % self.root) @@ -535,6 +539,8 @@ def process_result(self, test_env): if self.print_diff: diff_str = self.diff_files(self.current_test_case, test_env.test_case_path) + if self.use_colordiff: + diff_str = subprocess.check_output('colordiff', shell=True, encoding='utf8', input=diff_str) logging.info(diff_str) shutil.copy(test_env.test_case_path, self.current_test_case)
