From 2d08a983b205aa2bb3673710d61064345d00e01c Mon Sep 17 00:00:00 2001 From: Don Garrett Date: Wed, 16 Feb 2011 18:39:35 -0800 Subject: [PATCH] I'm still breaking the build. Reverting again until I figure out why. TBR BUG=None TEST=None Review URL: http://codereview.chromium.org/6507034 Change-Id: I21283ed2b1f81086ccc95b0436e66c53584f4583 --- bin/cros_au_test_harness.py | 1 - run_remote_tests.sh | 24 ++++++------------------ 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/bin/cros_au_test_harness.py b/bin/cros_au_test_harness.py index 729c629db8..0af3b722a8 100755 --- a/bin/cros_au_test_harness.py +++ b/bin/cros_au_test_harness.py @@ -515,7 +515,6 @@ class RealAUTest(unittest.TestCase, AUTest): output = RunCommand([ '%s/run_remote_tests.sh' % self.crosutils, '--remote=%s' % self.remote, - '--hide_info', self.verify_suite, ], error_ok=True, enter_chroot=False, redirect_stdout=True) return self.AssertEnoughTestsPassed(self, output, percent_required_to_pass) diff --git a/run_remote_tests.sh b/run_remote_tests.sh index db4ae324b0..f1f49cfe18 100755 --- a/run_remote_tests.sh +++ b/run_remote_tests.sh @@ -41,7 +41,6 @@ DEFINE_string board "$DEFAULT_BOARD" \ DEFINE_boolean build ${FLAGS_FALSE} "Build tests while running" b DEFINE_string chroot "${DEFAULT_CHROOT_DIR}" "alternate chroot location" c DEFINE_boolean cleanup ${FLAGS_FALSE} "Clean up temp directory" -DEFINE_boolean hide_info ${FLAGS_FALSE} "Hide most test logs on success" DEFINE_integer iterations 1 "Iterations to run every top level test" i DEFINE_string results_dir_root "" "alternate root results directory" DEFINE_boolean verbose ${FLAGS_FALSE} "Show verbose autoserv output" v @@ -70,10 +69,7 @@ function start_ssh_agent() { fi cp $FLAGS_private_key $tmp_private_key chmod 0400 $tmp_private_key - - # Run this way to capture normal stderr output but only display it - # on failure. - result="$(ssh-add $tmp_private_key 2>&1)" || die "$result" + ssh-add $tmp_private_key } function cleanup() { @@ -323,21 +319,13 @@ function main() { sudo chmod a+w ./server/{tests,site_tests} echo ./server/autoserv ${autoserv_args} - - # run autoserv in subshell, capture it's output, and only display output - # on error. - code=0 + if [ ${FLAGS_build} -eq ${FLAGS_TRUE} ]; then - result="$(. ${BUILD_ENV} && tc-export CC CXX PKG_CONFIG && - ./server/autoserv ${autoserv_args} 2>&1)" || code=1 + # run autoserv in subshell + (. ${BUILD_ENV} && tc-export CC CXX PKG_CONFIG && + ./server/autoserv ${autoserv_args}) else - result="$(./server/autoserv ${autoserv_args} 2>&1)" || code=1 - fi - - if [ $code -ne 0 -o ${FLAGS_hide_info} -eq ${FLAGS_FALSE} ]; then - echo - echo "${result}" - exit $code + ./server/autoserv ${autoserv_args} fi done popd > /dev/null