Without this change there was no indication if the test name pattern matched
any tests or not.
From 7648fd38f5e3057dfbc85280542731270609b318 Mon Sep 17 00:00:00 2001
From: Darin Petkov <[email protected]>
Date: Wed, 10 Mar 2010 16:33:47 -0800
Subject: [PATCH] Fail setup_job if there're no setup candidates.
---
client/bin/setup_job.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/client/bin/setup_job.py b/client/bin/setup_job.py
index c9f7a6e..c32698c 100644
--- a/client/bin/setup_job.py
+++ b/client/bin/setup_job.py
@@ -129,6 +129,9 @@ def setup_tests(options):
os.chdir(need_to_setup[0].job.clientdir)
os.system('tools/make_clean')
os.chdir(cwd)
+ elif not failed_tests:
+ logging.error('### No test setup candidates ###')
+ raise error.AutoservError('No test setup candidates.')
for setup_test in need_to_setup:
test_name = setup_test.__class__.__name__
--
1.7.0.1
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest