about summary refs log tree commit diff
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/network_test_base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/tests/network_test_base.py b/debian/tests/network_test_base.py
index 2adbbd4b..221aad15 100644
--- a/debian/tests/network_test_base.py
+++ b/debian/tests/network_test_base.py
@@ -15,6 +15,7 @@ import os
 import os.path
 import time
 import tempfile
+import shutil
 import subprocess
 import re
 import unittest
@@ -25,7 +26,7 @@ from glob import glob
 # check availability of programs, and cleanly skip test if they are not
 # available
 for program in ["wpa_supplicant", "hostapd", "dnsmasq", "dhclient"]:
-    if subprocess.call(["which", program], stdout=subprocess.PIPE) != 0:
+    if shutil.which(program) is None:
         sys.stderr.write(
             "%s is required for this test suite, but not available. Skipping\n"
             % program