[PATCH 1/2] ci: Fix .integration_tests_upstream_qemu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We enter $SCRATCH_DIR before going through the process of
cloning QEMU's upstream repo and building it, but once we're
done we don't get back to libvirt's sources, so the very next
step fails with

  /tmp/script.: line 188: ci/jobs.sh: No such file or directory

Use pushd/popd to ensure that we're back to the correct place
once QEMU has been built and installed.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 ci/integration-template.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ci/integration-template.yml b/ci/integration-template.yml
index 544264c3d5..1ccf64f4c1 100644
--- a/ci/integration-template.yml
+++ b/ci/integration-template.yml
@@ -83,9 +83,10 @@
 .integration_tests_upstream_qemu:
   before_script:
     - !reference [.integration_tests, before_script]
-    - cd "$SCRATCH_DIR"
+    - pushd "$SCRATCH_DIR"
     - *qemu-build-template
     - sudo restorecon -R /usr
+    - popd
 
 .integration_tests_upstream_qemu_prebuilt_env:
   extends:
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux