From 4e0a269d0402609d7424c76506c5db6aba638c0f Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 29 Jul 2021 15:34:38 +0200 Subject: [PATCH] Also apply filter to asyncprocess test --- test/framework/asyncprocess.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/framework/asyncprocess.py b/test/framework/asyncprocess.py index 1d4adb9fe3..06197ed471 100644 --- a/test/framework/asyncprocess.py +++ b/test/framework/asyncprocess.py @@ -30,8 +30,8 @@ import sys import time -from test.framework.utilities import EnhancedTestCase -from unittest import TextTestRunner, TestSuite +from test.framework.utilities import EnhancedTestCase, TestLoaderFiltered +from unittest import TextTestRunner import easybuild.tools.asyncprocess as p from easybuild.tools.asyncprocess import Popen @@ -45,7 +45,7 @@ def setUp(self): super(AsyncProcessTest, self).setUp() self.shell = Popen('sh', stdin=p.PIPE, stdout=p.PIPE, shell=True, executable='/bin/bash') - def runTest(self): + def test_echo_between_process(self): """ try echoing some text and see if it comes back out """ p.send_all(self.shell, "echo hello\n") time.sleep(0.1) @@ -67,7 +67,7 @@ def tearDown(self): def suite(): """ returns all the testcases in this module """ - return TestSuite([AsyncProcessTest()]) + return TestLoaderFiltered().loadTestsFromTestCase(AsyncProcessTest, sys.argv[1:]) if __name__ == '__main__':