diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-07-19 13:22:49 +0100 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2015-07-20 11:34:28 +0300 |
commit | 630d5ed6bdacd51577fdf2588be32c40f096ed34 (patch) | |
tree | 0309bb91531e2096b4c5442681e39ea5be91a297 /ezbench.sh | |
parent | 3c62e11c4c7c533977a13b068f3a9cf01eaffda3 (diff) |
Preserve local modifications
Next challenge will be to benchmark them as well
Diffstat (limited to 'ezbench.sh')
-rwxr-xr-x | ezbench.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |