#NEWLINE# def test_simple_run( tmpdir , qitest_action ) : #NEWLINE# #INDENT# ls = qisys . command . find_program ( 'ls' ) #NEWLINE# tests = [ { #NEWLINE# #INDENT# 'name' : 'ls' , #NEWLINE# 'cmd' : [ ls ] , #NEWLINE# 'timeout' : 1 , #NEWLINE# #UNINDENT# } ] #NEWLINE# qitest_json = tmpdir . join ( 'qitest.json' ) #NEWLINE# qitest_json . write ( json . dumps ( tests ) ) #NEWLINE# qitest_action ( 'run' , cwd = tmpdir . strpath )