ATF-devel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ATF confusion with improperly terminated script



On Sun, Feb 06, 2011 at 03:22:28PM -0800, Giorgos Keramidas wrote:
> On Sun, 6 Feb 2011 05:53:54 -0800, Garrett Cooper 
> <yanegomi%gmail.com@localhost> wrote:
> > Hi again Julio, et all,
> >     Until one runs set -x in the script below, it isn't apparent why
> > the script was failing. Is this issue going to be fixed in the future
> > with kyua?
> >
> > Thanks,
> > -Garrett
> >
> > $ atf-run
> > Content-Type: application/X-atf-tps; version="2"
> >
> ...
> > tps-count: 1
> > + [ -z '' ]
> > + echo '${SH} is not set, please correct and re-run.'
> > + exit 1
> > tp-start: regress.sh, 0
> > tp-end: regress.sh, Invalid format for test case list: 1: Unexpected
> > token `is'; expected `:'
> > info: time.end, Sun Feb 6 05:51:13 PST 2011
> 
> What dos the test case shell-script include?
> 
> The error message may be pointing in the right direction, but not in a
> very straight-forward way.

The "Invalid format for test case list" message means that the test
program did not print a valid test case list when it was executed with
the "-l" option.  The obvious cause of this is that the test program is
crashing before it even completes to run the "initialization function".
Keep in mind that the test code is executed with "set -e".

-- 
Julio Merino


Home | Main Index | Thread Index | Old Index