Skip to content
Snippets Groups Projects
Commit 595578e7 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix(test_email): `which net-tools` is always false, use `which netstat` instead

parent 53e96d0b
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ try: ...@@ -16,7 +16,7 @@ try:
except ImportError: except ImportError:
subprocess.check_call(['apt-get', '-qq', '-y', 'install', 'python3-spf']) subprocess.check_call(['apt-get', '-qq', '-y', 'install', 'python3-spf'])
import spf import spf
if subprocess.call(['which', 'net-tools']) != 0: if subprocess.call(['which', 'netstat']) != 0:
subprocess.check_call(['apt-get', '-qq', '-y', 'install', 'net-tools']) subprocess.check_call(['apt-get', '-qq', '-y', 'install', 'net-tools'])
YELLOW = '\033[93m' YELLOW = '\033[93m'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment