Re: [PATCH] Use local copy of kernel-ci if present

Wolfgang Mauerer <wm@...>

Am 19/01/2017 um 15:57 schrieb Daniel Wagner:
In order to develop or debug the setup we should allow to a developer
to use local copy of the sources.

This is done by cloning all the remote repos to the project main
folder. This folder is shared with the VM. The intergration-scripts
are testing if those repos are in the shared folder than git clone
uses this as source.
I've had to read the last sentence for a couple of times before
I could make sense of it. Perhaps something along the lines of

'The integration scripts test if the repos are present in the
shared folder. They are used as source for "git clone" in this case.'

To simplify the developer setup a simple script
is added. Note the current path should be the top folder of the

Signed-off-by: Daniel Wagner <daniel.wagner@...>

This helped me to quite a bit to get things tested in a more simpler
way. What do you think?
the patch as such seems most helpful to me -- struggling with
modifications that do not render any effect because sources are pulled
from a differnet source have bitten me quite a few times when working
with kernelci.

Thanks, Wolfgang


integration-scripts/ | 8 +++++++-
integration-scripts/ | 9 ++++++++-
integration-scripts/ | 8 +++++++-
scripts/ | 11 +++++++++++
4 files changed, 33 insertions(+), 3 deletions(-)
create mode 100644 scripts/

diff --git a/integration-scripts/ b/integration-scripts/
index 72a974033a3c..157e7184e349 100755
--- a/integration-scripts/
+++ b/integration-scripts/
@@ -4,7 +4,13 @@
# Install kernelci backend

cd $HOME && mkdir git-repos && cd git-repos
-git clone kernelci-backend
+if [ -d /vagrant/kernelci-backend-config ]; then
+ GIT_SRC=/vagrant/kernelci-backend-config
+git clone $GIT_SRC kernelci-backend
cp /vagrant/config/secrets-backend.yml kernelci-backend/secrets.yml

# Fixme: Don't let ansible try to create the file in the first place.
diff --git a/integration-scripts/ b/integration-scripts/
index 322619317af6..879aaed01792 100755
--- a/integration-scripts/
+++ b/integration-scripts/
@@ -3,7 +3,14 @@
# Copyright (C) 2016, Siemens AG, Wolfgang Mauerer <wolfgang.mauerer@...>
# SPDX-License-Identifier: Apache-2.0

-cd $HOME && git clone
+cd $HOME
+if [ -d /vagrant/kernelci-build ]; then
+ GIT_SRC=/vagrant/kernelci-build
+git clone $GIT_SRC
cd kernelci-build

MASTER_KEY=`cat $HOME/backend-admin-token.txt`
diff --git a/integration-scripts/ b/integration-scripts/
index 48ab91ab83ce..251ef89d28f3 100755
--- a/integration-scripts/
+++ b/integration-scripts/
@@ -4,7 +4,13 @@
# Install kernelci frontend

cd $HOME/git-repos
-git clone kernelci-frontend
+if [ -d /vagrant/kernelci-frontend-config ]; then
+ GIT_SRC=/vagrant/kernelci-frontend-config
+git clone $GIT_SRC kernelci-frontend
sed -i kernelci-frontend/roles/install-app/tasks/main.yml \
-e 's/kernelci\/kernelci-frontend.git/siemens\/kernelci-frontend.git/'

diff --git a/scripts/ b/scripts/
new file mode 100644
index 000000000000..59c13b233065
--- /dev/null
+++ b/scripts/
@@ -0,0 +1,11 @@
+if [ ! -f "Vagrantfile" ]; then
+ echo "script is supposed to be run from the top folder where"
+ echo "the Vagrantfile is."
+ exit 1
+git clone
+git clone
+git clone

Join to automatically receive all group messages.