Just to follow-up....the Unix shell is stripping off the $S in the "echo" 
request, which is causing the failure.

To resolve the problem you can use replace('$', '\\\$') in TestPython.py 
to correct the problem.

So after lines 764-765:

validMarshalledData = 
'@SDT/{:177::2:r...@sdt/$S:1:0:6:ipi...@sdt/$S:36:9.42.126.76x255.255.252.0x9.42.124.1:3:m...@sdt/$S:46:Static
 
IP arguments are processed successfully:9:timest...@sdt/$S:19:2009-01-16 
14:41:45'
data = validMarshalledData.replace('{', '^{')

Add the data.replace line:

validMarshalledData = 
'@SDT/{:177::2:r...@sdt/$S:1:0:6:ipi...@sdt/$S:36:9.42.126.76x255.255.252.0x9.42.124.1:3:m...@sdt/$S:46:Static
 
IP arguments are processed successfully:9:timest...@sdt/$S:19:2009-01-16 
14:41:45'
data = validMarshalledData.replace('{', '^{')
data = data.replace('$', '\\\$')

And after lines 787-788:

invalidMarshalledData = 
'@SDT/{:177::2:r...@sdt/$S:1:0:6:ipi...@sdt/$S:36:9.42.126.76x255.255.252.0x9.42.124.1:3:m...@sdt/$S:46:Static
 
IP arguments are processed successfully:9:timest...@sdt/$S:19:2009-01-16 
14:41:45XXXXX'
data = invalidMarshalledData.replace('{', '^{')

Add the data.replace line:

invalidMarshalledData = 
'@SDT/{:177::2:r...@sdt/$S:1:0:6:ipi...@sdt/$S:36:9.42.126.76x255.255.252.0x9.42.124.1:3:m...@sdt/$S:46:Static
 
IP arguments are processed successfully:9:timest...@sdt/$S:19:2009-01-16 
14:41:45XXXXX'
data = invalidMarshalledData.replace('{', '^{')
data = data.replace('$', '\\\$')

We'll need to update the test script to check if the platform is Windows 
or Unix (since this extra line should only be added for Unix).

Note that after making these updates, the TestPython.py will complete, but 
there will most likely still be 2 tests that fail ("ERROR: 
removePrivacyDelimiters").  We'll look into correcting those as well.
 
Thanks, 
David 

David Bender 
STAF/STAX Development 
IBM Software Group, WPLC 
 
11501 Burnet Rd. 
Bldg. 903-5B002 
Austin, TX 78758-3400 
 
Phone (T/L): 1-512-286-5315 (363-5315) 
ITN: 23635315 
Email: bda...@us.ibm.com 
 





From:
David Bender/Austin/i...@ibmus
To:
"Semih Cemiloglu" <semih.cemilo...@nec.com.au>
Cc:
staf-users@lists.sourceforge.net
Date:
02/03/2010 09:33 AM
Subject:
Re: [staf-users] Is this a defect in STAF-Python binding?




Hi, 

Yes, we have seen this on other Unix platforms when running TestPython.py. 
 We believe it's a problem with TestPython.py, so you can still use the 
STAF Python binding.  Please open a bug for this error, and we will 
investigate the problem.  Thanks.
 
Thanks, 
David 

David Bender 
STAF/STAX Development 
IBM Software Group, WPLC 
  
11501 Burnet Rd. 
Bldg. 903-5B002 
Austin, TX 78758-3400 
  
Phone (T/L): 1-512-286-5315 (363-5315) 
ITN: 23635315 
Email: bda...@us.ibm.com 
 





From: 
"Semih Cemiloglu" <semih.cemilo...@nec.com.au> 
To: 
<staf-users@lists.sourceforge.net> 
Date: 
02/02/2010 09:03 PM 
Subject: 
[staf-users] Is this a defect in STAF-Python binding?




Hi,

Currently I'm trying STAF-Python binding. Simple examples works fine but
when I try to execute
TestPython.py script bundled with STAF source, I observe following
error:

sem...@giant$ python TestPython.py 2>&1 | tee t.log
...
...
ERROR: Returned data not same as original stdout file contents
Expected:
@SDT/{:177::2:r...@sdt/$S:1:0:6:ipi...@sdt/$S:36:9.42.126.76x255.255.252.0
x9.42.124.1:3:m...@sdt/$S:46:Static IP arguments are processed
successfully:9:timest...@sdt/$S:19:2009-01-16 14:41:45
Found:
@SDT/{:177::2:r...@sdt/:1:0:6:ipi...@sdt/:36:9.42.126.76x255.255.252.0x9.4
2.124.1:3:m...@sdt/:46:Static IP arguments are processed
successfully:9:timest...@sdt/:19:2009-01-16 14:41:45

sem...@giant$ python --version
Python 2.6.1

I'm wondering whether this is a known error and if it's safe to use
STAF-Python binding still.

I'm using STAF version 3.4.0 on OpenSolaris x86.
The full log file is attached.

Kind regards,
Semih Cemiloglu 
[attachment "t.log" deleted by David Bender/Austin/IBM] 
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the 
business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the 
business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to