From owner-freebsd-testing@FreeBSD.ORG Mon Sep 29 21:55:32 2014 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 688DD46B; Mon, 29 Sep 2014 21:55:32 +0000 (UTC) Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 29898D3F; Mon, 29 Sep 2014 21:55:32 +0000 (UTC) Received: by mail-oi0-f46.google.com with SMTP id h136so2800021oig.33 for ; Mon, 29 Sep 2014 14:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6RFCK1rhN9O3U0XhqwL2cgj7p+rxMcIjZyb3Z7duzlw=; b=H8pSF4O+CdrPHvW8OgBWS3KpZGxc4Lj7mUQ8+jH6u2rikhHFuN1+1eYQBHNfySecAG d1jyMCvydx8rCVg9Z/nMra/CSDUAmPdzH7ZY3Wm9wy8IFN2QCph6//EIE8/StaDw8QwP qo6sip22w4n4Y6jKoRDo4tg7H5eQwfq2HJ3NtYbw+N+7qfdhb+P3vlCwlH/bnE4dQGfj +R9NVqggcvek3HcSbJtD3Srvqg0EmWF0bf+CyKPvBlhi3EgMBMjI/pLXCPLysflA7rnD 3zfHVHzFx/kPv2BdxJsZlei4dHViJRZVTXNcsYWg+m36sge9XeSAPy58/8sjJW2zxe7B MoqA== MIME-Version: 1.0 X-Received: by 10.182.22.233 with SMTP id h9mr43018155obf.48.1412027731486; Mon, 29 Sep 2014 14:55:31 -0700 (PDT) Received: by 10.76.167.65 with HTTP; Mon, 29 Sep 2014 14:55:31 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Sep 2014 14:55:31 -0700 Message-ID: Subject: Re: Increasing timeout for ATF test case From: Shrikanth Kamath To: Craig Rodrigues Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-testing@freebsd.org" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2014 21:55:32 -0000 Thanks Craig, that solved it. I have to start reading on kyua but currently the availability in my env is still the legacy atf-run I had a follow up question, does ATF framework support signaling the test scripts like a SIGINT? Or I have to take help from a wrapper shell script? -- Shrikanth R K On Mon, Sep 29, 2014 at 1:58 PM, Craig Rodrigues wrote: > 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 > 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 >> 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 >> > >> > 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" >> > >> > > >