mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-04 08:15:21 +00:00
utils: test: use sys.executable when launching minitools in tests
This is analogous to the previous patch's change to the aa-notify tests. Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
@@ -14,12 +14,16 @@
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import apparmor.aa as apparmor
|
import apparmor.aa as apparmor
|
||||||
from common_test import AATest, read_file, write_file, setup_aa, setup_all_loops
|
from common_test import AATest, read_file, write_file, setup_aa, setup_all_loops
|
||||||
|
|
||||||
python_interpreter = 'python3'
|
# Use the same python as the one this script is being run with
|
||||||
|
python_interpreter = sys.executable
|
||||||
|
if not python_interpreter:
|
||||||
|
python_interpreter = 'python3'
|
||||||
|
|
||||||
|
|
||||||
class MinitoolsTest(AATest):
|
class MinitoolsTest(AATest):
|
||||||
|
Reference in New Issue
Block a user