From ff92dfc562de6d5ae42bd50dd1e96d52129ad47b Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 1 Feb 2016 13:24:07 -0500 Subject: [PATCH] Tee output to test file --- cryptest.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cryptest.sh b/cryptest.sh index ad5c9429..87eb5697 100755 --- a/cryptest.sh +++ b/cryptest.sh @@ -207,9 +207,10 @@ if [ "$IS_DARWIN" -ne "0" ]; then CPU_FREQ=$(awk "BEGIN {print $CPU_FREQ/1024/1024/1024}") fi -echo "CPU: $CPU_COUNT logical" -echo "FREQ: $CPU_FREQ GHz" -echo "MEM: $MEM_SIZE MB" +echo | tee -a "$TEST_RESULTS" +echo "CPU: $CPU_COUNT logical" | tee -a "$TEST_RESULTS" +echo "FREQ: $CPU_FREQ GHz" | tee -a "$TEST_RESULTS" +echo "MEM: $MEM_SIZE MB" | tee -a "$TEST_RESULTS" if [ "$CPU_COUNT" -ge "2" ] && [ "$MEM_SIZE" -ge "1280" ]; then MAKEARGS=(-j "$CPU_COUNT")