Date: Mon, 29 Sep 2014 13:58:29 -0700 From: Craig Rodrigues <rodrigc@freebsd.org> To: Shrikanth Kamath <shrikanth07@gmail.com> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org> Subject: Re: Increasing timeout for ATF test case Message-ID: <CAG=rPVdmXaXFTo6FvcMKLEeUfVh6qwhfp_9No0xifpEdjq5X7g@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I'm not sure, but you might be able to put something like this in the _head() method for your testcase: atf_set "timeout" "500" See: http://www.daemon-systems.org/man/atf-test-case.4.html Keep in mind that in atf 0.20, the atf-run program has been removed, and kyua is the preferred way to run ATF tests. You might want to glance at this document that I am writing and provide feedback: https://github.com/rodrigc/kyua/wiki/Quickstart-Guide -- Craig On Mon, Sep 29, 2014 at 1:16 PM, Shrikanth Kamath <shrikanth07@gmail.com> wrote: > Hi Craig, > Not using kyua yet...I run the test by just issuing > > %atf-run t_dtest > > -- > Shrikanth R K > > On Mon, Sep 29, 2014 at 12:38 PM, Craig Rodrigues <rodrigc@freebsd.org> > wrote: > > Hi, > > > > How are you running the tests? > > If you use kyua, you can specify the timeout for an individual test in > the > > Kyuafile: http://manned.org/kyuafile.5 > > > > -- > > Craig > > > > > > On Mon, Sep 29, 2014 at 11:09 AM, Shrikanth Kamath < > shrikanth07@gmail.com> > > wrote: > >> > >> I am running a python script from inside ATF test framework but > >> because of some default timeout it does not allow the python script to > >> run to completion. > >> Getting the following error... > >> tc-end: 1411774809.781712, dtest, failed, Test case timed out after 300 > >> seconds > >> > >> How do I increase the timeout in ATF test case? > >> > >> -- > >> Shrikanth R K > >> _______________________________________________ > >> freebsd-testing@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-testing > >> To unsubscribe, send any mail to " > freebsd-testing-unsubscribe@freebsd.org" > > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVdmXaXFTo6FvcMKLEeUfVh6qwhfp_9No0xifpEdjq5X7g>