Skip to content

Commit

Permalink
Also apply filter to asyncprocess test
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Sep 21, 2021
1 parent d6d7b56 commit 4e0a269
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/framework/asyncprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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__':
Expand Down

0 comments on commit 4e0a269

Please sign in to comment.