]> xenbits.xensource.com Git - people/aperard/libvirt.git/commitdiff
ci: Fix .integration_tests_upstream_qemu
authorAndrea Bolognani <abologna@redhat.com>
Fri, 12 Jan 2024 10:01:34 +0000 (11:01 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 12 Jan 2024 13:28:38 +0000 (14:28 +0100)
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@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
ci/integration-template.yml

index 544264c3d5096fc61f8ccc39931b90736c27c8b9..1ccf64f4c15d4a8f09f27ed43552de0a528cf396 100644 (file)
 .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: