From: Denys Dmytriyenko <[email protected]>
Signed-off-by: Denys Dmytriyenko <[email protected]>
---
lib/common-functions | 1 +
lib/run-opentest | 11 ++++++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/lib/common-functions b/lib/common-functions
index ace8f86..e0fc8c6 100644
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -62,4 +62,5 @@ parse_config_file() {
general_log='$LOG_DIR/sdk-build-log.txt'
machine_build_log='$LOG_DIR/$m-build-log.txt'
machine_test_log='$LOG_DIR/$m-test-log.txt'
+machine_console_log='$LOG_DIR/$m-console-log.txt'
error_log='$LOG_DIR/error-log.txt'
diff --git a/lib/run-opentest b/lib/run-opentest
index 0017b5e..fb27d82 100644
--- a/lib/run-opentest
+++ b/lib/run-opentest
@@ -1,3 +1,5 @@
+#!/bin/bash
+
# Translate OE machine types to opentest HW platforms and don't test on
# unsupported platforms.
# NOTE: Some platforms re-use the same board so we can set oplatform the same
@@ -291,6 +293,13 @@ run_target_side_test() {
java -jar $OPENTEST_JAR --template penguin --hw
platform=$oplatform,$OPENTEST_HW_CAP --sw
kernel=$kernel$dtb~kernel_modules=$spluart$uboot$skern$fwinit$pmmc$bootattempts$boottimeout~nfs=$ipaddr:$nfs_dir$ASSIGN_TO_TEE~test_scripts_root=git://http://arago-project.org/git/projects/test-automation/execution-engines/vatf-scripts.git
--options "priority 0" --params script=/$TEST_SCRIPTS_TGT/opentest.sh
fi
+ otret=$?
+
+ if [ "${BUILD_LOG_VERBOSE}" = "true" ]; then
+ oturl=`eval grep 'LOG\ PATH' $machine_test_log | egrep -o
'href="([^"]*)' | cut -d\" -f2 | sed
's/dev_test_\([[:digit:]]\+\).html/dut1_\1_log.txt/'`
+ eval wget --no-proxy "$oturl" -O $machine_console_log
+ fi
+
################################################################################
# Check the results of the opentest run.
# - If the test failed mark the failure and exit
@@ -300,7 +309,7 @@ run_target_side_test() {
# This is not marked as a critical failure because this could be a false
# failure from the test system itself. So depending on what we set for
# SKIP_TEST_FAILURES we may continue with the packaging step.
- if [ "$?" != 0 ]
+ if [ "$otret" != 0 ]
then
echo "Opentest failed for $m"
echo "FAILED" > $LOG_DIR/$m-test-result.txt
--
1.7.9.5
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago