DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] test/autotest: checking for skipped or unsupported tests
@ 2020-03-02 20:41 Thinh Tran
  2020-05-24 15:54 ` Thomas Monjalon
  2020-06-02 16:53 ` David Christensen
  0 siblings, 2 replies; 4+ messages in thread
From: Thinh Tran @ 2020-03-02 20:41 UTC (permalink / raw)
  To: dev; +Cc: drc, Thinh Tran

- When running the dedault configuration of autotest of the make test
  it'd take 900 seconds (15 minutes) for the script TIMEOUT and marks
  Failed for a specific device test that is not supported on the
  system under test.
- Adding the checking for those tests, print out as "Skipped [Not Run]"
  quickly return and continue for next test

Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
---
 app/test/autotest_test_funcs.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/test/autotest_test_funcs.py b/app/test/autotest_test_funcs.py
index 26688b713..0ff17f75f 100644
--- a/app/test/autotest_test_funcs.py
+++ b/app/test/autotest_test_funcs.py
@@ -12,13 +12,16 @@
 def default_autotest(child, test_name):
     child.sendline(test_name)
     result = child.expect(["Test OK", "Test Failed",
-                           "Command not found", pexpect.TIMEOUT], timeout=900)
+                           "Command not found", pexpect.TIMEOUT,
+                           "Test Skipped"], timeout=900)
     if result == 1:
         return -1, "Fail"
     elif result == 2:
         return -1, "Fail [Not found]"
     elif result == 3:
         return -1, "Fail [Timeout]"
+    elif result == 4:
+        return 0, "Skipped [Not Run]"
     return 0, "Success"

 # autotest used to run dump commands
--
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] test/autotest: checking for skipped or unsupported tests
  2020-03-02 20:41 [dpdk-dev] [PATCH] test/autotest: checking for skipped or unsupported tests Thinh Tran
@ 2020-05-24 15:54 ` Thomas Monjalon
  2020-06-02 16:53 ` David Christensen
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2020-05-24 15:54 UTC (permalink / raw)
  To: dev; +Cc: drc, Thinh Tran

We are missing a review for this patch, please.


02/03/2020 21:41, Thinh Tran:
> - When running the dedault configuration of autotest of the make test
>   it'd take 900 seconds (15 minutes) for the script TIMEOUT and marks
>   Failed for a specific device test that is not supported on the
>   system under test.
> - Adding the checking for those tests, print out as "Skipped [Not Run]"
>   quickly return and continue for next test
> 
> Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
> ---
> --- a/app/test/autotest_test_funcs.py
> +++ b/app/test/autotest_test_funcs.py
> @@ -12,13 +12,16 @@
>  def default_autotest(child, test_name):
>      child.sendline(test_name)
>      result = child.expect(["Test OK", "Test Failed",
> -                           "Command not found", pexpect.TIMEOUT], timeout=900)
> +                           "Command not found", pexpect.TIMEOUT,
> +                           "Test Skipped"], timeout=900)
>      if result == 1:
>          return -1, "Fail"
>      elif result == 2:
>          return -1, "Fail [Not found]"
>      elif result == 3:
>          return -1, "Fail [Timeout]"
> +    elif result == 4:
> +        return 0, "Skipped [Not Run]"
>      return 0, "Success"




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] test/autotest: checking for skipped or unsupported tests
  2020-03-02 20:41 [dpdk-dev] [PATCH] test/autotest: checking for skipped or unsupported tests Thinh Tran
  2020-05-24 15:54 ` Thomas Monjalon
@ 2020-06-02 16:53 ` David Christensen
  2021-03-25 15:25   ` David Marchand
  1 sibling, 1 reply; 4+ messages in thread
From: David Christensen @ 2020-06-02 16:53 UTC (permalink / raw)
  To: Thinh Tran, dev

]> - When running the dedault configuration of autotest of the make test
>    it'd take 900 seconds (15 minutes) for the script TIMEOUT and marks
>    Failed for a specific device test that is not supported on the
>    system under test.
> - Adding the checking for those tests, print out as "Skipped [Not Run]"
>    quickly return and continue for next test
> 
> Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
> ---

Reviewed-By: David Christensen <drc@linux.vnet.ibm.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] test/autotest: checking for skipped or unsupported tests
  2020-06-02 16:53 ` David Christensen
@ 2021-03-25 15:25   ` David Marchand
  0 siblings, 0 replies; 4+ messages in thread
From: David Marchand @ 2021-03-25 15:25 UTC (permalink / raw)
  To: Thinh Tran; +Cc: dev, David Christensen

On Tue, Jun 2, 2020 at 6:53 PM David Christensen <drc@linux.vnet.ibm.com> wrote:
>
> > - When running the dedault configuration of autotest of the make test
> >    it'd take 900 seconds (15 minutes) for the script TIMEOUT and marks
> >    Failed for a specific device test that is not supported on the
> >    system under test.
> > - Adding the checking for those tests, print out as "Skipped [Not Run]"
> >    quickly return and continue for next test

Fixes: da0af48a67a5 ("test: add skipped return result")
Cc: stable@dpdk.org

> >
> > Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
Reviewed-by: David Christensen <drc@linux.vnet.ibm.com>


Applied, thanks.

-- 
David Marchand


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-25 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-02 20:41 [dpdk-dev] [PATCH] test/autotest: checking for skipped or unsupported tests Thinh Tran
2020-05-24 15:54 ` Thomas Monjalon
2020-06-02 16:53 ` David Christensen
2021-03-25 15:25   ` David Marchand

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git