From 432b3de26f0c76130ba7464c5a196e92334b5542 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Mon, 28 Feb 2011 16:25:38 +0100 Subject: BM2: First attempt to Arrange for Benchmark Rankings Using the new uploadresults.py script Task-number: QTQAINFRA-50 --- scripts/bm2_result_watcher.pl | 13 +++---------- 1 file 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 = $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"); } } } -- cgit v1.2.3