From: Thierry Parmentelat Date: Thu, 30 Sep 2010 16:07:00 +0000 (+0200) Subject: turn on SFA_API_DEBUG X-Git-Tag: tests-5.0-18~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b6c0f78da4a28c9aaa5f873fc717038e06f66347;p=tests.git turn on SFA_API_DEBUG --- diff --git a/system/TestPlc.py b/system/TestPlc.py index ae61522..df34ac1 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -1142,6 +1142,11 @@ class TestPlc: 'SFA_PLC_URL', ]: fileconf.write ('e %s\n%s\n'%(var,self.plc_spec['sfa'][var])) + # the way plc_config handles booleans just sucks.. + for var in ['SFA_API_DEBUG']: + val='false' + if self.plc_spec['sfa'][var]: val='true' + fileconf.write ('e %s\n%s\n'%(var,val)) fileconf.write('w\n') fileconf.write('R\n') fileconf.write('q\n') diff --git a/system/config_default.py b/system/config_default.py index 2745788..f85a33c 100644 --- a/system/config_default.py +++ b/system/config_default.py @@ -285,6 +285,7 @@ def sfa (options,index) : 'SFA_PLC_DB_USER' : 'pgsqluser', 'SFA_PLC_DB_PASSWORD' : 'mnbvcxzlkjhgfdsapoiuytrewq', 'SFA_PLC_URL' : 'deferred-myplc-api-url', + 'SFA_API_DEBUG': True, 'sfa_slice_specs' : sfa_slice_specs(options,index,slicename,regularuser), 'sfa_slice_xml' : sfa_slice_xml(options,index,piuser,slicename), 'sfa_person_xml' : sfa_person_xml(options,index,regularuser),