summaryrefslogtreecommitdiffstats
path: root/tests/include.rc
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2013-01-25 10:00:57 +0100
committerAnand Avati <avati@redhat.com>2013-01-29 10:29:03 -0800
commitf811441e257cafb975dfcd16f14b4378beee524e (patch)
tree4eaed1ee722b5e82ca623a9553fe590cd467b4f7 /tests/include.rc
parentfed0752313c37c500d3b88f0651c4923cec4cf9b (diff)
tests: skip time consuming mock builds for code-only changes
tests/basic/rpm.t takes a bulk of the time for the regression tests. Often the building of the rpm is not affected at all and therefor the tests does not add any value. With this change the rpmbuild/mock test will only be run when some changes affect the build system. Changes affecting 'tests/', 'doc/', '*.py', *.c' and '*.h' do not trigger the test anymore. Change-Id: Ic188b9e26cde3113b2bdf9cd1fab56d9fd85a4b7 BUG: 904005 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/4429 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests/include.rc')
-rw-r--r--tests/include.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 90bcb8ec7b8..03ffe4a5cc1 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -154,6 +154,15 @@ function _EXPECT_WITHIN()
}
+function SKIP_TESTS()
+{
+ dbg "Skipping tests $t-$testcnt";
+ while [ $t -le $testcnt ]; do
+ true ; test_footer;
+ done
+}
+
+
function cleanup()
{
killall -15 glusterfs glusterfsd glusterd 2>/dev/null || true;