Skip to content
Snippets Groups Projects
Commit cc89cff2 authored by Tim Martin's avatar Tim Martin
Browse files

Merge branch 'update_TP1T_ART_web_summary' into '21.1'

ATR-17644: Add a drop-down list in the web overview of TrigP1Test ART results

See merge request atlas/athena!10050

Former-commit-id: a65bd42f5ac613017806cd438c634b89230bc451
parents fd06ab04 1c8c3ced
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ use File::Basename;
use Date::Manip::Date;
# Produce summary table for trigtest.pl tests in same dir or first parameter to script
my $output="index.html";
my $output="index.php";
# If given, use first argument as output file
if ($#ARGV>=0) {
......@@ -274,8 +274,20 @@ function showBuildFailures(failures,link) {
# print HTMLOUT "<script src=\"".$nicosWWWPage."/build_failures_".$atn_relno.".js\" language=\"JavaScript\"></script>\n";
# print HTMLOUT "<script type=\"text/javascript\">showBuildFailures(failures_".$atn_relno."(),"."\"".$nicosWWWPage."/nicos_buildsummary_".$atn_relno.".html\")</script>";
#
print HTMLOUT "<p>Nightly test: $project, $gitbranch, $release</p>\n";
my $test_suite = gettestpkgdir(); # this is a basename of pwd (expected to be e.g. TrigP1Test)
print HTMLOUT "<p>Nightly test: $project, $gitbranch, $release\n\n";
print HTMLOUT "&emsp;Check other builds: <select name=\"select_other_builds\" onchange=\"location = this.value;\">\n";
print HTMLOUT "<option value=\"\" selected=\"selected\">-----</option>\n";
print HTMLOUT "<?php\n";
print HTMLOUT " \$nightlies = glob(dirname(__FILE__) . '/../../*');\n";
print HTMLOUT " \$nightlies = array_reverse(\$nightlies);\n";
print HTMLOUT " foreach(\$nightlies as \$nightly){\n";
print HTMLOUT " \$nightly = basename(\$nightly);\n";
print HTMLOUT " echo \"<option value='../../\" . \$nightly . \"/$test_suite/\" . \"'>\".\$nightly.\"</option>\";\n";
print HTMLOUT " }\n";
print HTMLOUT "?>\n";
print HTMLOUT "</select>\n";
print HTMLOUT "</p>\n";
# Link to GitLab diff between today's and yesterday's release
my $fmt="%Y-%m-%dT%H%M";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment