Example #1
0
def main():

    repy_args = ["--stop", "nonexist", "--status", "foo", "restrictions.default", "stop_testsleep.py"]

    (out, error) = utfutil.execute_repy(repy_args)
    if out or error:
        print "FAIL"
Example #2
0
def main():

    repy_args = [
        '--stop', 'nonexist', '--status', 'foo', 'restrictions.default',
        'stop_testsleep.py'
    ]

    (out, error) = utfutil.execute_repy(repy_args)
    if out or error: print 'FAIL'
Example #3
0
def main():
           
  repy_args = ['--stop', 'repy.py', 
               '--status', 'foo',
               'restrictions.default', 
               'stop_testsleep.py'
               ]

  output = (out, error) = utfutil.execute_repy(repy_args)
  if not error or out: print 'FAIL'
def main():
    # clean up the stop file if it already exists.
    if os.path.exists('junk_test.out'): os.remove('junk_test.out')

    repy_args = [
        '--stop', 'junk_test.out', '--status', 'foo', 'restrictions.default',
        'stop_testsleepwrite.py'
    ]

    (out, error) = utfutil.execute_repy(repy_args)
    if out or error: 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'
Example #6
0
def main():
  # clean up the stop file if it already exists.
  if os.path.exists('junk_test.out'): os.remove('junk_test.out')

  repy_args = [
               '--stop', 'junk_test.out',
               '--status', 'foo',
               'restrictions.default', 
               'stop_testsleepwrite.py'
               ]

  (out, error) = utfutil.execute_repy(repy_args)
  if out or error: print 'FAIL'
Example #7
0
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'
Example #8
0
def main():
  # Test running repy from a sub directory
  tmp_directory = 'subdirtest'

  # Make a temporary directory
  if not os.path.exists(tmp_directory): os.mkdir(tmp_directory)

  repy_args = [
               '--cwd', tmp_directory,
               '../restrictions.default',
               '../test_init.py',
              ]

  (out, error) = utfutil.execute_repy(repy_args)

  if out or error: print 'FAIL'
Example #9
0
def main():
    # Test running repy from a sub directory
    tmp_directory = 'subdirtest'

    # Make a temporary directory
    if not os.path.exists(tmp_directory): os.mkdir(tmp_directory)

    repy_args = [
        '--cwd',
        tmp_directory,
        '../restrictions.default',
        '../test_init.py',
    ]

    (out, error) = utfutil.execute_repy(repy_args)

    if out or error: print 'FAIL'
Example #10
0
def main():

    # Absolute Path Stop Test
    stop_file = "junk_test.out"

    # Clean up the stop file if it already exists.
    if os.path.exists(stop_file):
        os.remove(stop_file)

    current_directory = os.getcwd()
    stop_file = os.path.join(current_directory, stop_file)

    repy_args = ["--stop", stop_file, "--status", "foo", "restrictions.default", "stop_testsleepwrite.py"]

    result = (out, error) = utfutil.execute_repy(repy_args)

    if os.path.exists(stop_file):
        os.remove(stop_file)

    if out or error:
        print "FAIL"
Example #11
0
def main():

  # Absolute Path Stop Test
  stop_file = 'junk_test.out'

  # Clean up the stop file if it already exists.
  if os.path.exists(stop_file): os.remove(stop_file)

  current_directory = os.getcwd()
  stop_file = os.path.join(current_directory, stop_file)

  repy_args = ['--stop', stop_file, 
               '--status', 'foo',
               'restrictions.default',
               'stop_testsleepwrite.py']

  result = (out, error) = utfutil.execute_repy(repy_args)

  if os.path.exists(stop_file): os.remove(stop_file)

  if out or error: 
    print 'FAIL'