diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-11-06 13:57:35 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-12-20 13:18:59 +0000 |
commit | f2c854fe6cfccffcfa169296299bce0fe59cb207 (patch) | |
tree | 0c92907a3c6eebdb96c7964fc944805a5741ba7e /ezbench.sh | |
parent | 678695307abe339d1633f503c11ac4bedb6c1fcb (diff) |
HAX core: Add an option to add more results to a previous run
Diffstat (limited to 'ezbench.sh')
-rwxr-xr-x | ezbench.sh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -82,12 +82,15 @@ function callIfDefined() { } no_compile= -while getopts "h?p:n:N:H:r:b:B:m:T:l" opt; do +while getopts "h?pK:n:N:H:r:b:B:m:T:l" opt; do case "$opt" in h|\?) show_help exit 0 ;; + K) + name=$(git --git-dir=${gitRepoDir}/.git config --get ezbench.last 2>/dev/null) + ;; p) gitRepoDir=$OPTARG ;; n) lastNCommits=$OPTARG @@ -119,7 +122,8 @@ done shift $((OPTIND-1)) # redirect the output to both a log file and stdout -logsFolder="$ezBenchDir/logs/${name:-$(date +"%Y-%m-%d-%T")}" +[ -n "$name" ] || name=$(date +"%Y-%m-%d-%T") +logsFolder="$ezBenchDir/logs/${name}" [ -d $logsFolder ] || mkdir -p $logsFolder || exit 1 exec > >(tee -a $logsFolder/results) exec 2>&1 @@ -303,6 +307,7 @@ function compile { } # Iterate through the commits +git config --replace-all ezbench.last "${name}" for commit in $commitList do # save the commit in the commit_list |