Hello community,

here is the log from the commit of package python-efilter for openSUSE:Factory 
checked in at 2020-05-05 19:07:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-efilter (Old)
 and      /work/SRC/openSUSE:Factory/.python-efilter.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-efilter"

Tue May  5 19:07:18 2020 rev:5 rq:800401 version:1.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-efilter/python-efilter.changes    
2020-01-13 22:21:00.070503669 +0100
+++ /work/SRC/openSUSE:Factory/.python-efilter.new.2738/python-efilter.changes  
2020-05-05 19:07:38.554966990 +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.seMqho/_old  2020-05-05 19:07:40.662971359 +0200
+++ /var/tmp/diff_new_pack.seMqho/_new  2020-05-05 19:07:40.666971366 +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,

Reply via email to