configure: move tests/qemu-iotests/common.env generation to meson
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Dec 2020 11:12:10 +0000 (12:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Jan 2021 09:21:20 +0000 (10:21 +0100)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
tests/qemu-iotests/common.env.in [new file with mode: 0644]
tests/qemu-iotests/meson.build

index bccd797cbc0d2d855d21378e2d315d7171067c77..5860bdb77ba820b9583d8a98705caec143497bcc 100755 (executable)
--- a/configure
+++ b/configure
@@ -6433,13 +6433,6 @@ for rom in seabios; do
     echo "RANLIB=$ranlib" >> $config_mak
 done
 
-# set up qemu-iotests in this build directory
-iotests_common_env="tests/qemu-iotests/common.env"
-
-echo "# Automatically generated by configure - do not modify" > "$iotests_common_env"
-echo >> "$iotests_common_env"
-echo "export PYTHON='$python'" >> "$iotests_common_env"
-
 if test "$skip_meson" = no; then
 cross="config-meson.cross.new"
 meson_quote() {
diff --git a/tests/qemu-iotests/common.env.in b/tests/qemu-iotests/common.env.in
new file mode 100644 (file)
index 0000000..e565cdf
--- /dev/null
@@ -0,0 +1,3 @@
+# Automatically generated by configure - do not modify
+
+export PYTHON='@PYTHON@'
index 67aed1e4927846a624a943c7ad974df1cb1b1850..26658ce25cea9829dc8ea78d0d3ffc462d25ee0c 100644 (file)
@@ -3,3 +3,6 @@ if 'CONFIG_LINUX' in config_host
 else
     socket_scm_helper = []
 endif
+configure_file(output: 'common.env',
+               input: files('common.env.in'),
+               configuration: {'PYTHON': python.full_path()})