Changes in directory nightlytest-serverside:
EmailReport.php updated: 1.2 -> 1.3 --- Log message: reuse code for e-mail report #12 --- Diffs of the changes: (+11 -6) EmailReport.php | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) Index: nightlytest-serverside/EmailReport.php diff -u nightlytest-serverside/EmailReport.php:1.2 nightlytest-serverside/EmailReport.php:1.3 --- nightlytest-serverside/EmailReport.php:1.2 Fri Sep 8 18:45:13 2006 +++ nightlytest-serverside/EmailReport.php Fri Sep 8 18:49:13 2006 @@ -1,24 +1,29 @@ <?php -$machine_id = $argv[0]; -if(!isset($machine_id) || !is_numeric($machine_id)){ +if ($argc != 3) { + print "Not enough arguments\n"; + die(); +} + +$machine_id = $argv[1]; +if(!is_numeric($machine_id)) { print "Incorrect machine id\n"; die(); } -$night_id = $argv[1]; -if(!isset($night_id) || !is_numeric($night_id)){ +$night_id = $argv[2]; +if(!is_numeric($night_id)) { print "Incorrect night id\n"; die(); } -if(!(include "NightlyTester.php")){ +if(!(include "NightlyTester.php")) { print "Error: could not load necessary files!\n"; die(); } -if(!(include"ProgramResults.php")){ +if(!(include"ProgramResults.php")) { print "Error: could not load necessary files!\n"; die(); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits