[Avida-cvs] [avida-svn] r743 - in development: consistencytests/Tests/SMT support/utils/AvidaUtils
kaben@myxo.css.msu.edu
kaben at myxo.css.msu.edu
Fri Jun 9 12:42:50 PDT 2006
Author: kaben
Date: 2006-06-09 15:42:50 -0400 (Fri, 09 Jun 2006)
New Revision: 743
Modified:
development/consistencytests/Tests/SMT/SConscript
development/support/utils/AvidaUtils/TestUtil.py
Log:
Attempting to get detailed output from Windows consistency tests.
Modified: development/consistencytests/Tests/SMT/SConscript
===================================================================
--- development/consistencytests/Tests/SMT/SConscript 2006-06-09 19:08:28 UTC (rev 742)
+++ development/consistencytests/Tests/SMT/SConscript 2006-06-09 19:42:50 UTC (rev 743)
@@ -26,7 +26,7 @@
RunLength = '500'
TestDirBase = e.Dir('Seed_')
-SeedSet = range(100,105)
+SeedSet = range(100,101)
OutputFileName = 'detail_pop.%s' % RunLength
ConsistencyCheck(e, 'Default-SMT',
Modified: development/support/utils/AvidaUtils/TestUtil.py
===================================================================
--- development/support/utils/AvidaUtils/TestUtil.py 2006-06-09 19:08:28 UTC (rev 742)
+++ development/support/utils/AvidaUtils/TestUtil.py 2006-06-09 19:42:50 UTC (rev 743)
@@ -82,8 +82,16 @@
expected_last_line_fd = file(expectation_file_path, "rU")
- os.system(avida_command)
+ #os.system(avida_command)
+ avida_output_fd = os.popen(avida_command, 'r', 1)
+ line = avida_output_fd.readline()
+ while line != "":
+ print line,
+ line = avida_output_fd.readline()
+ avida_output_fd.close()
+
+
detail_fd = file(os.path.join(run_subdir, self.output_file_name),"rU")
next_detail_line = detail_fd.readline()
while next_detail_line != "":
More information about the Avida-cvs
mailing list