tests/lcitool: Allow lcitool-refresh in out-of-tree builds, too
commitab4f987c4c56a55977922595f95236890db88edf
authorThomas Huth <thuth@redhat.com>
Fri, 4 Feb 2022 20:43:23 +0000 (4 20:43 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 9 Feb 2022 12:08:42 +0000 (9 12:08 +0000)
tree9e4dee7f5bfd004b294c5c7b1668b3c0adc96538
parent6340af7a949589cf07b5194edbbfb352734d8a3b
tests/lcitool: Allow lcitool-refresh in out-of-tree builds, too

When running "make lcitool-refresh" in an out-of-tree build, it
currently fails with an error message from git like this:

 fatal: not a git repository (or any parent up to mount point /)
 Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Fix it by changing to the source directory first before updating
the submodule.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220201085554.85733-1-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220204204335.1689602-15-alex.bennee@linaro.org>
tests/lcitool/Makefile.include