Hello community, here is the log from the commit of package python-efilter for openSUSE:Leap:15.2 checked in at 2020-05-07 19:29:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-efilter (Old) and /work/SRC/openSUSE:Leap:15.2/.python-efilter.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-efilter" Thu May 7 19:29:02 2020 rev:13 rq:801317 version:1.6.0 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-efilter/python-efilter.changes 2020-03-09 18:04:52.728803017 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-efilter.new.2738/python-efilter.changes 2020-05-07 19:38:12.666795159 +0200 @@ -1,0 +2,5 @@ +Tue May 5 12:17:07 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- Add patch fix-executable.patch to fix tests + +------------------------------------------------------------------- New: ---- fix-executable.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-efilter.spec ++++++ --- /var/tmp/diff_new_pack.AdVDwB/_old 2020-05-07 19:38:13.738797305 +0200 +++ /var/tmp/diff_new_pack.AdVDwB/_new 2020-05-07 19:38:13.738797305 +0200 @@ -24,6 +24,8 @@ License: Apache-2.0 URL: https://github.com/rekall-innovations/efilter Source0: https://github.com/rekall-innovations/efilter/archive/v%{version}.tar.gz +# fix executable in tests +Patch0: fix-executable.patch BuildRequires: %{python_module future} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dateutil} @@ -44,6 +46,7 @@ %prep %setup -q -n efilter-%{version} +%patch0 -p1 %build %python_build ++++++ fix-executable.patch ++++++ Index: efilter-1.6.0/efilter_tests/testlib.py =================================================================== --- efilter-1.6.0.orig/efilter_tests/testlib.py +++ efilter-1.6.0/efilter_tests/testlib.py @@ -22,6 +22,7 @@ from builtins import object __author__ = "Adam Sindelar <ada...@google.com>" import os +import sys import subprocess import unittest @@ -41,7 +42,7 @@ def get_fixture_path(name): class EfilterTestCase(unittest.TestCase): def runPythonScript(self, script_path, args=()): - cmd = ["python", os.path.join(os.getcwd(), script_path)] + cmd = [sys.executable, os.path.join(os.getcwd(), script_path)] cmd.extend(args) proc = subprocess.Popen(args=cmd, stdout=subprocess.PIPE,