Ignore:
Timestamp:
Mar 11, 2010, 12:05:09 PM (13 years ago)
Author:
gray
Message:

Using do_tests_checks_demos_audits from EQRM in cluster test_eqrm.py acceptance test. It now relies EQRM being in the pythonpath environment variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/acceptance_tests/test_eqrm.py

    r7656 r7659  
    66import time
    77import test_utils as util
     8from for_all_verification import do_tests_checks_demos_audits
    89
    910name = 'Running EQRM test_all.py'
    1011
    1112def test(logfile):
     13    """
     14   
     15    """
    1216    result = True
    1317
     
    1721    python_env_var = os.getenv('PYTHON')
    1822
    19     # remember the directory we are in and go to EQRM test directory
     23    # remember the directory we are in and go to EQRM directory
    2024    home_directory = os.getcwd()
    2125    eqrm_path = os.getenv('EQRMPATH')
     
    2428                                   "can't test EQRM.")
    2529        return False
     30   
     31    result = do_tests_checks_demos_audits(eqrm_root_dir=eqrm_path,
     32                                          python_command=python_env_var)
    2633
    27     os.chdir(os.path.join(eqrm_path))
    28     print 'in %s' % os.getcwd()
     34#     os.chdir(os.path.join(eqrm_path))
     35#     print 'in %s' % os.getcwd()
    2936
    30     # run clean_all.py
    31     util.log_print_nl(logfile, '%s clean_all.py' % python_env_var)
    32     (fd_in, fd_out) = os.popen4('%s clean_all.py' % python_env_var)
    33     fd_in.write('y\n')
    34     fd_in.close()
    35     clean_result = fd_out.read()
    36     fd_out.close()
    37     util.log_print(logfile, clean_result)
     37#     # run clean_all.py
     38#     util.log_print_nl(logfile, '%s clean_all.py' % python_env_var)
     39#     (fd_in, fd_out) = os.popen4('%s clean_all.py' % python_env_var)
     40#     fd_in.write('y\n')
     41#     fd_in.close()
     42#     clean_result = fd_out.read()
     43#     fd_out.close()
     44#     util.log_print(logfile, clean_result)
    3845
    39     # run test_all.py
    40     util.log_print_nl(logfile, '%s test_all.py' % python_env_var)
    41     (_, fd_out) = os.popen4('%s test_all.py' % python_env_var)
    42     test_result = fd_out.read()
    43     status = fd_out.close()
    44     util.log_print(logfile, test_result)
     46#     # run test_all.py
     47#     util.log_print_nl(logfile, '%s test_all.py' % python_env_var)
     48#     (_, fd_out) = os.popen4('%s test_all.py' % python_env_var)
     49#     test_result = fd_out.read()
     50#     status = fd_out.close()
     51#     util.log_print(logfile, test_result)
    4552
    46     # run check_scenarios.py
    47     util.log_print_nl(logfile, '%s check_scenarios.py' % python_env_var)
    48     (_, fd_out) = os.popen4('%s check_scenarios.py' % python_env_var)
    49     test_result = fd_out.read()
    50     status = fd_out.close()
    51     util.log_print(logfile, test_result)
     53#     # run check_scenarios.py
     54#     util.log_print_nl(logfile, '%s check_scenarios.py' % python_env_var)
     55#     (_, fd_out) = os.popen4('%s check_scenarios.py' % python_env_var)
     56#     test_result = fd_out.read()
     57#     status = fd_out.close()
     58#     util.log_print(logfile, test_result)
    5259
    53     # return to original directory
    54     os.chdir(home_directory)
     60#     # return to original directory
     61#     os.chdir(home_directory)
    5562
    5663    return result
Note: See TracChangeset for help on using the changeset viewer.