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:
Ryan Lee 2025-01-23 10:27:37 -08:00
parent 77cabf7dba
commit e32c267332

View file

@ -14,12 +14,16 @@
import os
import shutil
import subprocess
import sys
import unittest
import apparmor.aa as apparmor
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):