From ec0a69e378a90fc8ccc09e2234ab3e0f2ce69182 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Fri, 23 Sep 2011 12:42:54 +0530 Subject: sanity/nightly_sanity: save the patches applied everyday Do not print the git diff of the applied patches in the message. Instead copy the patches diretory to /tmp and save that directory in the results directory everyday. --- sanity/nightly_sanity/nightly_sanity.sh | 7 +++++-- sanity/nightly_sanity/nightly_updated.sh | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/sanity/nightly_sanity/nightly_sanity.sh b/sanity/nightly_sanity/nightly_sanity.sh index 8af244c..143ed89 100755 --- a/sanity/nightly_sanity/nightly_sanity.sh +++ b/sanity/nightly_sanity/nightly_sanity.sh @@ -67,14 +67,17 @@ function update_git () #return 0; fi + echo "========PATCHES========"; + for i in $(ls /root/patches) do $GIT_PATH apply /root/patches/$i; + echo $i >> $GIT_FILE done - echo "========DIFF========"; - $GIT_PATH diff >> $GIT_FILE; + #$GIT_PATH diff >> $GIT_FILE; + cp -r /root/patches/ /tmp/; rm -f /root/patches/*; } diff --git a/sanity/nightly_sanity/nightly_updated.sh b/sanity/nightly_sanity/nightly_updated.sh index 4e6bb0d..baed7d3 100755 --- a/sanity/nightly_sanity/nightly_updated.sh +++ b/sanity/nightly_sanity/nightly_updated.sh @@ -601,6 +601,12 @@ function send_results() cp -r $LOGDIR/* $RESULTDIR; tar cjf results_$translator.bz2 $RESULTDIR; + ############################### copying the patches applied today ################################## + + cp -r /tmp/patches/ $LOGDIR; + + #################################################################################################### + # git push log files echo "Pushing logs to qalogs git repo: " mkdir -p $LOGREPO/`date +%F`/$translator/ -- cgit