[Erp5-report] r20444 - in /experimental/FSPatch/Products/ERP5Type: ./ tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 11 13:05:44 CEST 2008


Author: mikolaj
Date: Fri Apr 11 13:05:43 2008
New Revision: 20444

URL: http://svn.erp5.org?rev=20444&view=rev
Log:
patch adding a new option to runUnitTest script that allows to keep changes made by tests in Data.fs - answering http://mail.nexedi.com/pipermail/erp5-dev/2008-March/001795.html

Added:
    experimental/FSPatch/Products/ERP5Type/
    experimental/FSPatch/Products/ERP5Type/tests/
    experimental/FSPatch/Products/ERP5Type/tests/runUnitTest_forceFileStorage.diff

Added: experimental/FSPatch/Products/ERP5Type/tests/runUnitTest_forceFileStorage.diff
URL: http://svn.erp5.org/experimental/FSPatch/Products/ERP5Type/tests/runUnitTest_forceFileStorage.diff?rev=20444&view=auto
==============================================================================
--- experimental/FSPatch/Products/ERP5Type/tests/runUnitTest_forceFileStorage.diff (added)
+++ experimental/FSPatch/Products/ERP5Type/tests/runUnitTest_forceFileStorage.diff Fri Apr 11 13:05:43 2008
@@ -1,0 +1,33 @@
+Index: runUnitTest.py
+===================================================================
+--- runUnitTest.py	(wersja 18850)
++++ runUnitTest.py	(kopia robocza)
+@@ -34,6 +34,11 @@
+                              and exit without invoking any tests
+   --load                     load Data.fs and skip adding erp5 sites and
+                              business templates
++  --use_file_storage         instead of temporary demo storage, use file storage
++                             ie. keep changes made by test(s) in Data.fs - use 
++                             with caution since consequent test run with --load
++                             option may fail due to existing data. (Usefull only
++                             with combination with --load option)
+   --erp5_sql_connection_string=STRING
+                              ZSQL Connection string for erp5_sql_connection, by
+                              default, it will use "test test"                            
+@@ -336,6 +341,7 @@
+         "erp5_catalog_storage=",
+         "save",
+         "load",
++        "use_file_storage",
+         "email_from_address=",
+         "run_only="] )
+   except getopt.GetoptError, msg:
+@@ -387,6 +393,8 @@
+       os.environ["erp5_save_data_fs"] = "1"
+     elif opt == "--load":
+       os.environ["erp5_load_data_fs"] = "1"
++    elif opt == "--use_file_storage":
++      os.environ["erp5_force_data_fs"] = "1"
+     elif opt == "--erp5_catalog_storage":
+       os.environ["erp5_catalog_storage"] = arg
+     elif opt == "--run_only":




More information about the Erp5-report mailing list