summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2011-02-28 16:25:38 +0100
committerQt Continuous Integration System <qt-info@nokia.com>2011-02-28 16:25:38 +0100
commit432b3de26f0c76130ba7464c5a196e92334b5542 (patch)
treec54006b89a79e3278a5e10ad14bb46a9b0cb9158
parent862cd1e81054d37eb5f34f13a91706e174769973 (diff)
BM2: First attempt to Arrange for Benchmark Rankings
Using the new uploadresults.py script Task-number: QTQAINFRA-50
-rwxr-xr-xscripts/bm2_result_watcher.pl13
1 files changed, 3 insertions, 10 deletions
diff --git a/scripts/bm2_result_watcher.pl b/scripts/bm2_result_watcher.pl
index 8d4e0ae..61ba8ee 100755
--- a/scripts/bm2_result_watcher.pl
+++ b/scripts/bm2_result_watcher.pl
@@ -86,19 +86,12 @@ until ($dieNow) {
if ($fi =~ /<Branch>(.*)<\/Branch>/) { $branch = $1; last; }
}
close(FILE);
- my @args = ( "/home/qt/bm2/scripts/uploadresults.py",
- $hostname,
- $platform,
- $branch,
- $sha1,
- $timestamp,
- $workdir . $f,
- "bm" );
- if (system(@args) == 0) {
+ my $upload_exe = "/home/qt/bm2/scripts/uploadresults.py --db bm --host $hostname --platform $platform --branch $branch --sha1 $sha1 --file $workdir$f";
+ if (system($upload_exe) == 0) {
system("/bin/cp $workdir$f /home/qt/tmp_benchmarks2") == 0 or logEntry("Couldn't execute `cp': " . $workdir . $f);
system("/bin/rm -f $workdir$f") == 0 or logEntry("Couldn't execute `rm': " . $workdir . $f);
} else {
- logEntry("Couldn't execute: @args");
+ logEntry("Couldn't execute: uploadresults.py");
}
}
}