Re: storing test logs under /var/log/

2015-12-08 Thread Ganesh Pal
> Wrong question; if you want to use sys.exit() in a way similar to C display > the error message first and invoke sys.exit() afterwards with a numerical > argument. > > -- oh ok , got it thanks :) -- https://mail.python.org/mailman/listinfo/python-list

Re: storing test logs under /var/log/

2015-12-08 Thread Cameron Simpson
On 08Dec2015 13:24, Peter Otten <__pete...@web.de> wrote: Ganesh Pal wrote: [Cameron Simpson:] Finally. sys.exit accepts an integer, not a string. Most of code uses sys.exit("some error message") , I did notice that the error message is not displayed by sys .exit("some error message") ,

Re: storing test logs under /var/log/

2015-12-08 Thread Peter Otten
Ganesh Pal wrote: [Cameron Simpson:] >> Finally. sys.exit accepts an integer, not a string. > Most of code uses sys.exit("some error message") , I did notice > that the error message is not displayed by sys .exit("some error > message") , do u mean that using string is not advisable with >

Re: storing test logs under /var/log/

2015-12-08 Thread Ganesh Pal
> Finally. sys.exit accepts an integer, not a string. > Most of code uses sys.exit("some error message") , I did notice that the error message is not displayed by sys .exit("some error message") , do u mean that using string is not advisable with sys.exit ? How to I display error messages wi

Re: storing test logs under /var/log/

2015-12-03 Thread Cameron Simpson
On 03Dec2015 12:20, Ganesh Pal wrote: I would need few tips from your past experiences on how to store the test logs My requirement is to capture log under /var/log/ directory every time the test is run . Normally /var/log itself is only writable by root. Unless you are running your test

storing test logs under /var/log/

2015-12-02 Thread Ganesh Pal
Hi Team , I would need few tips from your past experiences on how to store the test logs My requirement is to capture log under /var/log/ directory every time the test is run . The test will create one small log files which are around 1KB in size . Here is how I plan to approach this ,