diff mbox series

[kvm-unit-tests] travis.yml: Use TRAVIS_BUILD_DIR to refer to the top directory

Message ID 20200925071147.149406-1-thuth@redhat.com (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests] travis.yml: Use TRAVIS_BUILD_DIR to refer to the top directory | expand

Commit Message

Thomas Huth Sept. 25, 2020, 7:11 a.m. UTC
Travis already has an environment variable that points to the top of
the checked-out source code, TRAVIS_BUILD_DIR. We can use it to avoid
the guessing of the right location of the configure script.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 .travis.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Paolo Bonzini Sept. 25, 2020, 8 a.m. UTC | #1
On 25/09/20 09:11, Thomas Huth wrote:
> Travis already has an environment variable that points to the top of
> the checked-out source code, TRAVIS_BUILD_DIR. We can use it to avoid
> the guessing of the right location of the configure script.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  .travis.yml | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/.travis.yml b/.travis.yml
> index 3bc05ce..e9c18e4 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -175,8 +175,7 @@ before_script:
>        sudo chmod g+s /usr/bin/qemu-system-* ;
>      fi
>    - mkdir -p $BUILD_DIR && cd $BUILD_DIR
> -  - if [ -e ./configure ]; then ./configure $CONFIG ; fi
> -  - if [ -e ../configure ]; then ../configure $CONFIG ; fi
> +  - $TRAVIS_BUILD_DIR/configure $CONFIG
>  script:
>    - make -j3
>    - ACCEL="${ACCEL:-tcg}" ./run_tests.sh -v $TESTS | tee results.txt
> 

Applied, thanks.

Paolo
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index 3bc05ce..e9c18e4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -175,8 +175,7 @@  before_script:
       sudo chmod g+s /usr/bin/qemu-system-* ;
     fi
   - mkdir -p $BUILD_DIR && cd $BUILD_DIR
-  - if [ -e ./configure ]; then ./configure $CONFIG ; fi
-  - if [ -e ../configure ]; then ../configure $CONFIG ; fi
+  - $TRAVIS_BUILD_DIR/configure $CONFIG
 script:
   - make -j3
   - ACCEL="${ACCEL:-tcg}" ./run_tests.sh -v $TESTS | tee results.txt