test/security_manager_sc: ignore stderr for test init

This commit is contained in:
Matthias Ringwald 2020-09-23 16:20:37 +02:00
parent 9a09a08acc
commit 7bbbec6baf

View File

@ -346,13 +346,13 @@ def write_config(fout, test_descriptor):
def run_test(test_descriptor):
# shutdown previous sm_test instances
try:
subprocess.call("killall sm_test", shell = True)
subprocess.run(['killall', 'sm_test'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except:
pass
# trash all bonding informatino
try:
subprocess.call("rm /tmp/btstack_*", shell = True)
subprocess.call(['rm', '-f', '/tmp/btstack_*'])
except:
pass