[libvirt PATCH 02/33] ci: build.sh: Add GIT_ROOT env helper variable

Erik Skultety posted 33 patches 2 years, 5 months ago
There is a newer version of this series
[libvirt PATCH 02/33] ci: build.sh: Add GIT_ROOT env helper variable
Posted by Erik Skultety 2 years, 5 months ago
We'll use this one in many of the job functions future patches will
introduce, it's a neat shortcut to avoid using relative paths.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
---
 ci/build.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ci/build.sh b/ci/build.sh
index d5586f457c..152c222244 100644
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -9,6 +9,8 @@ export PATH="$CCACHE_WRAPPERSDIR:$PATH"
 export VIR_TEST_VERBOSE="1"
 export VIR_TEST_DEBUG="1"
 
+GIT_ROOT="$(git rev-parse --show-toplevel)"
+
 # $MESON_OPTS is an env that can optionally be set in the container,
 # populated at build time from the Dockerfile. A typical use case would
 # be to pass options to trigger cross-compilation
-- 
2.41.0
Re: [libvirt PATCH 02/33] ci: build.sh: Add GIT_ROOT env helper variable
Posted by Daniel P. Berrangé 2 years, 5 months ago
On Fri, Aug 25, 2023 at 07:55:10PM +0200, Erik Skultety wrote:
> We'll use this one in many of the job functions future patches will
> introduce, it's a neat shortcut to avoid using relative paths.
> 
> Signed-off-by: Erik Skultety <eskultet@redhat.com>
> ---
>  ci/build.sh | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|