[yt-svn] commit/yt: ngoldbaum: This restores the previous behavior in the enzo answer testing where the tests

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Apr 2 16:04:44 PDT 2013


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/8d14a55aefcd/
Changeset:   8d14a55aefcd
Branch:      yt
User:        ngoldbaum
Date:        2013-04-03 01:04:25
Summary:     This restores the previous behavior in the enzo answer testing where the tests
will not run unless an output directory is specified.  I've additionally added a
hook that exits the yt answer tests if an output directory is not specified.
Affected #:  1 file

diff -r 73fa10cba4d55f2a2fdb3c0c8141e4798dd8ba68 -r 8d14a55aefcdda5a65309c1102a95ad87ddb8515 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -71,8 +71,7 @@
         parser.add_option("--answer-big-data", dest="big_data",
             default=False, help="Should we run against big data, too?",
             action="store_true")
-        parser.add_option("--local-dir", dest="output_dir",
-                          default=ytcfg.get("yt", "test_data_dir"), metavar='str',
+        parser.add_option("--local-dir", dest="output_dir", metavar='str',
                           help="The name of the directory to store local results")
 
     @property
@@ -128,6 +127,9 @@
 
         # Local/Cloud storage
         if options.local_results:
+            if options.output_dir is None:
+                print 'Please supply an output directory with the --local-dir option'
+                sys.exit(1)
             storage_class = AnswerTestLocalStorage
             # Fix up filename for local storage
             if self.compare_name is not None:

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list