On Donnerstag, 19. Februar 2009, Subrata Modak wrote:
> Hi,
>
> On Wed, 2009-02-18 at 15:02 -0500, Nate Straz wrote:
> > On Feb 18 12:12, Juergen Beisert wrote:
> > > On Friday, 13. feb 2009, myself wrote:
> > > > would it be possible to use 'pan' to monitoring a test? The timeout
> > > > option (-t) would be a nice feature to force a kill after a specified
> > > > amount of time to a test that might run amok (at least in my
> > > > automated test environment without a human operator in front of the
> > > > system under test). But when I'm using the -t option it runs the
> > > > given command n times until the time is over. Is there a trick to let
> > > > 'pan' run the given command only one times?
> > >
> > > Please find attached a small patch to add this simple feature to pan
> > > without changing its previous behaviour. Running a test only once by
> > > pan for a
>
> Yes, its true that it does not alter the existing behaviour. But neither
> does the patch change anything.

?

> > > specific time is currently also possible without this patch. Just give
> > > the '-t <time>' option *and* than the '-s 1' option. But it is racy
> > > yet, to do so.
>
> -s is never used to say how many times it should run or not. It´s use
> is:
> -s PATTERN      Only run test cases which match PATTERN.

Huh? From the source of pan (pan.c) I read:

[...]
        case 's':       /* number of tags to run */
            starts = atoi(optarg);
            break;
[...]

It seems more a number than a string, or?

And from its help output:

  [ -s starts ]

So im confused now with your answer.

Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to