diff options
-rwxr-xr-x | sanity/nightly_sanity/nightly_sanity.sh | 7 | ||||
-rwxr-xr-x | 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/ |