Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ts: fix up ktest result and add time to build

  • Loading branch information...
commit 1bf1b13fa1f4a1492f21b894198342e3b95dcf7b 1 parent 6ad1fb7
@gregkh authored
Showing with 12 additions and 7 deletions.
  1. +12 −7 test/ts
View
19 test/ts
@@ -30,9 +30,9 @@ EMAIL="greg@kroah.com"
REMOTE_STABLE_GIT="/home/ec2-user/linux/stable/linux-stable/"
REMOTE_WORK="/home/ec2-user/tmp/"
#REMOTE_SERVER="ec2-50-112-17-159.us-west-2.compute.amazonaws.com" # not mine
-REMOTE_SERVER="ec2-54-245-1-104.us-west-2.compute.amazonaws.com" # mine
+#REMOTE_SERVER="ec2-54-245-1-104.us-west-2.compute.amazonaws.com" # mine - big
+REMOTE_SERVER="ec2-50-112-3-253.us-west-2.compute.amazonaws.com" # mine - really big
SSH_OPTIONS="-i /home/gregkh/.ssh/stable_build.pem"
-
REMOTE_USER="ec2-user"
LOCAL_WORK="/tmp/"
@@ -99,12 +99,20 @@ cd ..
# Apply the patch queue
QUILT_PATCHES=patches QUILT_SERIES=patches/series quilt push -aq --quiltrc
+# get initial time
+TIME=\$(date +%s)
+
# build stuff
-time perl ../ktest.pl ../ktest.conf
+../ktest.pl ../ktest.conf
-KTEST_RUN=$?
+KTEST_RUN=\$?
echo "KTEST_RUN = \${KTEST_RUN}"
+# get time it took to do the build
+TIME="\$((\$(date +%s)-TIME))"
+
+echo "Took \${TIME} seconds to build"
+
cd ..
if [ "\${KTEST_RUN}" = "0" ]; then
@@ -150,9 +158,6 @@ rm -rf ${SCRIPT_HOME}
# execute the script on the remote machine
-#ssh ${REMOTE_USER}@${REMOTE_SERVER} "cd ${REMOTE_DIR} && nohup \"cd ${REMOTE_DIR} && ./run_test.sh & > ${REMOTE_DIR} output_log \" "
-#ssh ${REMOTE_USER}@${REMOTE_SERVER} "cd ${REMOTE_DIR} && nohup \"${REMOTE_DIR}/run_test.sh & > ${REMOTE_DIR}/output_log\""
-#ssh ${REMOTE_USER}@${REMOTE_SERVER} "nohup ${REMOTE_DIR}/run_test.sh > ${REMOTE_DIR}/output_log &"
#ssh ${REMOTE_USER}@${REMOTE_SERVER} "${REMOTE_DIR}/run_test.sh > ${REMOTE_DIR}/output_log"
ssh ${SSH_OPTIONS} -n -f ${REMOTE_USER}@${REMOTE_SERVER} "sh -c \"cd ${REMOTE_DIR}; nohup ./run_test.sh > ${REMOTE_DIR}/output_log 2>&1 &\" "
Please sign in to comment.
Something went wrong with that request. Please try again.