summaryrefslogtreecommitdiffstats
path: root/scripts/qt
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@digia.com>2014-03-27 10:31:44 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-27 10:55:47 +0100
commit293d9ab912f9b82920eec686a180b8c2c14dacff (patch)
tree95226198fa79095391b2578158c53fb0991654ee /scripts/qt
parente41700200d0753ddc8378570eb4f809d88b16d64 (diff)
Qtqa: Enable blacklisting of submodule update
In some cases we can't clone nested submodules. It seems to relate to git version on CI nodes. Adding QtDeclarative to list to prevent some manual tests to be cloned. Change-Id: Idc0c5643a8e34225483bb4bdbae440c691331911 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
Diffstat (limited to 'scripts/qt')
-rwxr-xr-xscripts/qt/qtmod_test.pl32
1 files changed, 24 insertions, 8 deletions
diff --git a/scripts/qt/qtmod_test.pl b/scripts/qt/qtmod_test.pl
index a074932c..671ccdbe 100755
--- a/scripts/qt/qtmod_test.pl
+++ b/scripts/qt/qtmod_test.pl
@@ -235,6 +235,13 @@ my %MAKE_CHECK_BLACKLIST = map { $_ => 1 } qw(
qtwebkit
);
+# Some modules contains nested submodules. Until we get rid of old git
+# clients, like in Ubuntu 11.10, we can't run submodule update for some
+# of the modules
+my %SUBMODULE_UPDATE_BLACKLIST = map { $_ => 1 } qw(
+ qtdeclarative
+);
+
# Like abs_path, but dies instead of returning an empty value if dirname($path)
# doesn't exist.
sub safe_abs_path
@@ -769,7 +776,11 @@ sub set_module_refs
# need to redo a `submodule update' in case any gitmodule content is
# affected. Note that the `submodule update' is a no-op in the usual case
# of no nested gitmodules.
- $self->exe( 'git', 'submodule', 'update', '--recursive', '--init' );
+ if ($SUBMODULE_UPDATE_BLACKLIST{$module}) {
+ warn "It is not safe to run submodule update for $module";
+ } else {
+ $self->exe( 'git', 'submodule', 'update', '--recursive', '--init' );
+ }
}
return;
@@ -909,14 +920,19 @@ sub run_git_checkout
}
$self->exe( 'git', 'clone', '--shared', $base_dir, $qt_gitmodule );
- # run git submodule update for module under test, if there is one for module
- chdir( $qt_gitmodule );
- my $res = $self->exe_qx( 'git', 'submodule', 'status');
- if ($res ne "") {
- $self->exe( 'git', 'submodule', 'update', '--recursive', '--init' );
+
+ if ($SUBMODULE_UPDATE_BLACKLIST{$qt_gitmodule}) {
+ warn "It is not safe to run submodule update for $qt_gitmodule";
+ } else {
+ # run git submodule update for module under test, if there is one for module
+ chdir( $qt_gitmodule );
+ my $res = $self->exe_qx( 'git', 'submodule', 'status');
+ if ($res ne "") {
+ $self->exe( 'git', 'submodule', 'update', '--recursive', '--init' );
+ }
+ # return just in case
+ chdir( $qt_dir );
}
- # return just in case
- chdir( $qt_dir );
}
}