summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorErik Schmauss <erik.schmauss@intel.com>2017-08-31 16:35:48 -0700
committerErik Schmauss <erik.schmauss@intel.com>2017-08-31 16:53:36 -0700
commitf306328d75449059638eeda3ca0ad6be2ded6427 (patch)
tree80b7f336938414fbcc28a2226c39d838153dd49f /tests
parentc5adbb87d27992732ffbd16907428a4ee0f0fed5 (diff)
downloadacpica-f306328d75449059638eeda3ca0ad6be2ded6427.tar.gz
ASLTS: asltsrun: add functionality to save the output from Do 2 to the result directory
This is a convenient way to look at the difference between the current and previous ASLTSL run if there exists a difference. Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/aslts/bin/asltsrun13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/aslts/bin/asltsrun b/tests/aslts/bin/asltsrun
index 9b8478b8d..7c022d516 100755
--- a/tests/aslts/bin/asltsrun
+++ b/tests/aslts/bin/asltsrun
@@ -915,6 +915,12 @@ compare_two_summaries()
echo "$longDivider"
printf "$format" "pass diff" $o64p $n64p $o32p $n32p
printf "$format" "fail diff" $o64f $n64f $o32f $n32f
+ for result_value in $o64p $n64p $o32p $n32p $o64f $n64f $o32f $n32f
+ do
+ if [ $result_value -ne 0 ]; then
+ return 1
+ fi
+ done
}
# ############################## MAIN ###############################
@@ -1096,6 +1102,13 @@ if [ "$summary_to_compare" == "" ]; then
else
echo "comparing against $summary_to_compare"
compare_two_summaries "$COMMONLOGFILE" "$summary_to_compare"
+ if [ $? -ne 0 ]; then \
+ do2path=$MULTIPATH/do2Output.txt
+ Do 2 > $do2path
+ if [ $? -ne 0 ]; then \
+ echo "Detailed comparsion of previous 2 test runs in $do2path"
+ fi
+ fi
fi
exit $UTILSTATUS