def main(): repy_args = [ '--stop', 'repy.py', '--status', 'foo', 'restrictions.default', 'stop_testsleep.py' ] (rawout, error) = utfutil.execute_repy(repy_args) out = utf.strip_android_debug_messages(rawout) if not error or out: print 'FAIL'
def main(): repy_args = ['--stop', 'repy.py', '--status', 'foo', 'restrictions.default', 'stop_testsleep.py' ] (rawout, error) = utfutil.execute_repy(repy_args) out = utf.strip_android_debug_messages(rawout) if not error or out: print 'FAIL'
import subprocess import time import sys import utf processOne = subprocess.Popen([ sys.executable, 'repy.py', '--simple', 'restrictions.default', 's_testseek.py' ], stdout=subprocess.PIPE, stderr=subprocess.PIPE) (rawstdoutFirst, stderrFirst) = processOne.communicate() processOne.wait() processTwo = subprocess.Popen([sys.executable, 's_testseek.py'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) (rawstdoutSecond, stderrSecond) = processTwo.communicate() processTwo.wait() stdoutFirst = utf.strip_android_debug_messages(rawstdoutFirst) stdoutSecond = utf.strip_android_debug_messages(rawstdoutSecond) if stderrFirst != stderrSecond or stdoutFirst != stdoutSecond: raise Exception
import subprocess import time import sys import utf processOne = subprocess.Popen([sys.executable, 'repy.py', '--simple', 'restrictions.default', 's_testopen.py'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) (rawstdoutFirst, stderrFirst) = processOne.communicate() processOne.wait() processTwo = subprocess.Popen([sys.executable, 's_testopen.py'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) (rawstdoutSecond, stderrSecond) = processTwo.communicate() processTwo.wait() stdoutFirst = utf.strip_android_debug_messages(rawstdoutFirst) stdoutSecond = utf.strip_android_debug_messages(rawstdoutSecond) if stderrFirst != stderrSecond or stdoutFirst != stdoutSecond: raise Exception