diff mbox

[ovs-dev,1/3] check-kernel: add recheck support

Message ID 1472760892-28398-2-git-send-email-lrichard@redhat.com
State Accepted
Headers show

Commit Message

Lance Richardson Sept. 1, 2016, 8:14 p.m. UTC
Support "make check-kernel RECHECK=yes", similar to existing support
for "make check RECHECK=yes".

Signed-off-by: Lance Richardson <lrichard@redhat.com>
---
 tests/automake.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Joe Stringer Sept. 1, 2016, 9:36 p.m. UTC | #1
On 1 September 2016 at 13:14, Lance Richardson <lrichard@redhat.com> wrote:
> Support "make check-kernel RECHECK=yes", similar to existing support
> for "make check RECHECK=yes".
>
> Signed-off-by: Lance Richardson <lrichard@redhat.com>

Thanks a lot, applied to master and branch-2.6 .
diff mbox

Patch

diff --git a/tests/automake.mk b/tests/automake.mk
index 5d12ae5..d42b576 100644
--- a/tests/automake.mk
+++ b/tests/automake.mk
@@ -243,7 +243,8 @@  EXTRA_DIST += tests/run-ryu
 
 # Run kmod tests. Assume kernel modules has been installed or linked into the kernel
 check-kernel: all tests/atconfig tests/atlocal $(SYSTEM_KMOD_TESTSUITE)
-	$(SHELL) '$(SYSTEM_KMOD_TESTSUITE)' -C tests  AUTOTEST_PATH='$(AUTOTEST_PATH)' $(TESTSUITEFLAGS) -j1
+	set $(SHELL) '$(SYSTEM_KMOD_TESTSUITE)' -C tests  AUTOTEST_PATH='$(AUTOTEST_PATH)' $(TESTSUITEFLAGS) -j1; \
+	"$$@" || (test X'$(RECHECK)' = Xyes && "$$@" --recheck)
 
 # Testing the out of tree Kernel module
 check-kmod: all tests/atconfig tests/atlocal $(SYSTEM_KMOD_TESTSUITE)