diff options
author | Erik Schmauss <erik.schmauss@intel.com> | 2017-09-15 16:34:30 -0700 |
---|---|---|
committer | Erik Schmauss <erik.schmauss@intel.com> | 2017-09-15 16:34:30 -0700 |
commit | badfdbf54c74cf0b5491cb4299e58d0bca5df7a6 (patch) | |
tree | 2562e3d1f272bbe6ed2740097eb93e5b9871dc29 /tests | |
parent | 1ed56f34024b6057fc96a557b6b422301ae74489 (diff) | |
download | acpica-badfdbf54c74cf0b5491cb4299e58d0bca5df7a6.tar.gz |
ASLTS: Do: do not perform binary compare unless both files exist
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/aslts/bin/Do | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/aslts/bin/Do b/tests/aslts/bin/Do index 0ea8d6821..d034072d4 100755 --- a/tests/aslts/bin/Do +++ b/tests/aslts/bin/Do @@ -333,21 +333,25 @@ binary_compare() echo " $disasm_compile_dir" if [ ! -d $disasm_compile_dir ]; then - echo "$dism_compile_dir does not exist. Aborting binary compare" + echo " $dism_compile_dir does not exist. Aborting binary compare" return; fi if [ ! -d $normal_compile_dir ]; then - echo "$normal_compile_dir does not exist. Aborting binary compare" + echo " $normal_compile_dir does not exist. Aborting binary compare" return; fi for f in $disasm_compile_dir/* do filename=`basename $f` - acpibin -a "$f" "$normal_compile_dir/$filename" > /dev/null - if [ $? -ne 0 ]; then - echo "[[ Error: $mode Binary compare for $filename failed ]]" + if [ ! -f "$normal_compile_dir/$filename" ]; then + echo " binary compare $mode the following file does not exist: $normal_compile_dir/$filename" else - echo "$mode Binary compare for $filename passed" + acpibin -a "$f" "$normal_compile_dir/$filename" > /dev/null + if [ $? -ne 0 ]; then + echo " [[ Error: $mode Binary compare for $filename failed ]]" + else + echo " $mode Binary compare for $filename passed" + fi fi done } |