@samitouri / QOSamiQemu / commits / 4d0830ea34

tests/data/acpi: disassemble-aml: rename and change interpreter line

/usr/bin/bash isn't guaranteed to be present. Switch to /usr/bin/env bash. Specifically, on Darwin/macOS: $ which bash /opt/homebrew/bin/bash Rename disassemle to disassemble in the same commit (typo fix). Adapt the correponding message in rebuild-expected-aml. Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Reviewed-by: Ani Sinha <anisinha@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20260210041248.14701-1-mohamed@unpredictable.fr>

Mohamed Mediouni committed Feb 10, 2026 at 05:12 UTC 4d0830ea34abed563f15d3a236bef83a9026a7e8
2 files changed +3 -3
tests/data/acpi/disassemble-aml.sh renamed
+2 -2
@@ -1,4 +1,4 @@
1 -#!/usr/bin/bash
1 +#!/usr/bin/env bash
2
3 outdir=
4 while getopts "o:" arg; do
@@ -7,7 +7,7 @@ while getopts "o:" arg; do
7 outdir=$OPTARG
8 ;;
9 \? )
10 - echo "Usage: ./tests/data/acpi/disassemle-aml.sh [-o <output-directory>]"
10 + echo "Usage: ./tests/data/acpi/disassemble-aml.sh [-o <output-directory>]"
11 exit 1
12 ;;
13
tests/data/acpi/rebuild-expected-aml.sh
+1 -1
@@ -57,7 +57,7 @@ old_allowed_dif=`grep -v -e 'List of comma-separated changed AML files to ignore
57 echo '/* List of comma-separated changed AML files to ignore */' > ${SRC_PATH}/tests/qtest/bios-tables-test-allowed-diff.h
58
59 echo "The files were rebuilt and can be added to git."
60 -echo "You can use ${SRC_PATH}/tests/data/acpi/disassemle-aml.sh to disassemble them to ASL."
60 +echo "You can use ${SRC_PATH}/tests/data/acpi/disassemble-aml.sh to disassemble them to ASL."
61
62 if [ -z "$old_allowed_dif" ]; then
63 echo "Note! Please do not commit expected files with source changes"