Ignore:
Timestamp:
May 13, 2009, 3:16:11 PM (15 years ago)
Author:
rwilson
Message:

Added report of nodes marked 'bad'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy_misc/tools/acceptance_tests/test_dump_python_environment.py

    r7025 r7027  
    7575    util.log_print_nl(logfile)
    7676
     77    # display which nodes are considered 'bad'
     78    cluster_info = util.get_cluster_info(cluster)
     79    bad_node_list = cluster_info['bad_nodes']
     80    if bad_node_list:
     81        util.log_print_nl(logfile, 'The following nodes are considered bad:)
     82        util.log_print(logfile, '    ')
     83        for n in bad_node_list:
     84            util.log_print(logfile, '%d  ' % n)
     85        util.log_print_nl(logfile)
     86    else:
     87        util.log_print_nl(logfile, 'No nodes are considered bad.')
     88    util.log_print_nl(logfile)
     89
     90
    7791    return True
    7892
Note: See TracChangeset for help on using the changeset viewer.