From b982968b6b6ccddb96b9cdbfd610c06006935639 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl=20Madon?= <mael.madon@irit.fr>
Date: Fri, 14 Apr 2023 15:57:34 +0200
Subject: [PATCH] use current python executable to run tests with CLI version

---
 test/conftest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/conftest.py b/test/conftest.py
index 15924f6..086e583 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -1,5 +1,5 @@
 from cgi import test
-import os, subprocess
+import os, subprocess, sys
 
 class KTH_WL:
     swf_file = "workloads/KTH-SP2-1996-2.1-cln.swf"
@@ -30,7 +30,7 @@ def run_script(delim, threshold,
     out_dir = os.path.abspath(f'test-out/{test_name}')
     create_dir_rec_if_needed(out_dir)
 
-    args = ['swf2userSessions', f'--{delim}', str(threshold), 
+    args = [sys.executable, 'swf2userSessions/swf2sessions.py', f'--{delim}', str(threshold), 
             '-q', input_swf, out_dir]
     if graph:
         args.append("--graph")
-- 
GitLab