Changeset 7230
- Timestamp:
- Jun 19, 2009, 1:52:24 PM (16 years ago)
- Location:
- branches/numpy_misc/tools/acceptance_tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy_misc/tools/acceptance_tests/test_all.py
r7054 r7230 44 44 sys.exit(10) 45 45 46 # copy machines_<name> files from here to ~47 home = os.getenv('HOME')48 if not home:49 util.log_print_nl(logfile, "Sorry, you don't have the 'HOME' environment variable set.")50 sys.exit(10)51 machine_file = 'machines_%s' % hostname52 shutil.copyfile(machine_file, os.path.join(home, '.'+machine_file))46 ## # copy machines_<name> files from here to ~ 47 ## home = os.getenv('HOME') 48 ## if not home: 49 ## util.log_print_nl(logfile, "Sorry, you don't have the 'HOME' environment variable set.") 50 ## sys.exit(10) 51 ## machine_file = 'machines_%s' % hostname 52 ## shutil.copyfile(machine_file, os.path.join(home, '.'+machine_file)) 53 53 54 54 # make sure environment variables are set -
branches/numpy_misc/tools/acceptance_tests/test_dump_python_environment.py
r7031 r7230 58 58 util.log_print_nl(logfile) 59 59 60 # show contents of ./machines_<machine>61 # NOT SURE THIS FILE HAS ANY MEANING ANYMORE!?62 home = os.getenv('HOME')63 machines_file = os.path.join(home, '.machines_%s' % cluster)64 try:65 fd = open(machines_file, 'r')66 data = fd.read()67 fd.close()68 except:69 data = '***** NO FILE FOUND *****\n'70 71 util.log_print_nl(logfile, '%s:' % machines_file)72 util.log_print_nl(logfile, '-' * 30)73 util.log_print(logfile, data)74 util.log_print_nl(logfile, '-' * 30)75 util.log_print_nl(logfile)60 ## # show contents of ./machines_<machine> 61 ## # NOT SURE THIS FILE HAS ANY MEANING ANYMORE!? 62 ## home = os.getenv('HOME') 63 ## machines_file = os.path.join(home, '.machines_%s' % cluster) 64 ## try: 65 ## fd = open(machines_file, 'r') 66 ## data = fd.read() 67 ## fd.close() 68 ## except: 69 ## data = '***** NO FILE FOUND *****\n' 70 ## 71 ## util.log_print_nl(logfile, '%s:' % machines_file) 72 ## util.log_print_nl(logfile, '-' * 30) 73 ## util.log_print(logfile, data) 74 ## util.log_print_nl(logfile, '-' * 30) 75 ## util.log_print_nl(logfile) 76 76 77 77 # display which nodes are considered 'bad'
Note: See TracChangeset
for help on using the changeset viewer.