mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01: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:
parent
77cabf7dba
commit
e32c267332
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue