aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2020-08-04 11:21:05 -0400
committerMichael S. Tsirkin <mst@redhat.com>2020-08-27 08:27:48 -0400
commitc27c1cc3ca6b6177520dff066c0fb6bb6a0297d4 (patch)
tree3b48e91dbc5232f873caff2c694dda7652a960a5 /tests/data
parent9b897b399eb1f6b71add88ed0bfaeabf63609115 (diff)
downloadqemu-c27c1cc3ca6b6177520dff066c0fb6bb6a0297d4.zip
qemu-c27c1cc3ca6b6177520dff066c0fb6bb6a0297d4.tar.gz
qemu-c27c1cc3ca6b6177520dff066c0fb6bb6a0297d4.tar.bz2
disassemble-aml: -o actually works
Turns out that option was borken due to weird iasl command line handling. Fix it. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/data')
-rwxr-xr-xtests/data/acpi/disassemle-aml.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/data/acpi/disassemle-aml.sh b/tests/data/acpi/disassemle-aml.sh
index 1d8a4d0..253b762 100755
--- a/tests/data/acpi/disassemle-aml.sh
+++ b/tests/data/acpi/disassemle-aml.sh
@@ -42,11 +42,16 @@ do
else
extra=""
fi
- asl=${aml}.dsl
if [[ "${outdir}" ]];
then
- asl="${outdir}"/${machine}/${asl}
+ # iasl strips an extension from prefix if there.
+ # since we have some files with . in the name, the
+ # last component gets interpreted as an extension:
+ # add another extension to work around that.
+ prefix="-p ${outdir}/${aml}.dsl"
+ else
+ prefix=""
fi
- iasl -d -p ${asl} ${extra} ${aml}
+ iasl ${extra} ${prefix} -d ${aml}
done
done