summaryrefslogtreecommitdiff
path: root/ezbench.sh
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-07-19 13:22:49 +0100
committerMartin Peres <martin.peres@linux.intel.com>2015-07-20 11:34:28 +0300
commit630d5ed6bdacd51577fdf2588be32c40f096ed34 (patch)
tree0309bb91531e2096b4c5442681e39ea5be91a297 /ezbench.sh
parent3c62e11c4c7c533977a13b068f3a9cf01eaffda3 (diff)
Preserve local modifications
Next challenge will be to benchmark them as well
Diffstat (limited to 'ezbench.sh')
-rwxr-xr-xezbench.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ezbench.sh b/ezbench.sh
index c0b0981..56846fa 100755
--- a/ezbench.sh
+++ b/ezbench.sh
@@ -107,6 +107,7 @@ exec 2>&1
function finish {
# to be executed on exit, possibly twice!
git reset --hard $commit_head 2> /dev/null
+ [ -n "$stash" ] && git stash apply $stash > /dev/null
# Execute the user-defined post hook
callIfDefined ezbench_post_hook
@@ -127,6 +128,10 @@ fi
commit_head=$(git show HEAD | grep commit | cut -d ' ' -f 2)
echo "Original commit = $commit_head"
+# Preserve any local modifications
+stash=`git stash create`
+[ -n "$stash" ] && echo "Preserving work-in-progress"
+
# Generate the actual list of tests
typeset -A testNames
typeset -A testPrevFps