From 8e8f95beda59ee25d0c7a7acfc3e211b246a1a8f Mon Sep 17 00:00:00 2001 From: Bjørn Forsman Date: Sun, 7 Sep 2014 15:37:16 +0200 Subject: nixos/test-reports: use local copy of jquery The current way test reports get jquery, src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" only works when getting reports over http:// or https://, not file://. Change it so that it works for all protocols by using a local copy of jquery. This fixes the issue where locally created and browsed test reports cannot be navigated properly; clicking the '+' symbol to expand sub-sections doesn't work. --- nixos/lib/testing.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nixos/lib/testing.nix') diff --git a/nixos/lib/testing.nix b/nixos/lib/testing.nix index 0e23fc5d187d..75e9c3977763 100644 --- a/nixos/lib/testing.nix +++ b/nixos/lib/testing.nix @@ -53,6 +53,8 @@ rec { xsltproc --output $out/log.html ${./test-driver/log2html.xsl} $out/log.xml ln -s ${./test-driver/logfile.css} $out/logfile.css ln -s ${./test-driver/treebits.js} $out/treebits.js + ln -s ${jquery}/js/jquery.min.js $out/ + ln -s ${jquery-ui}/js/jquery-ui.min.js $out/ touch $out/nix-support/hydra-build-products echo "report testlog $out log.html" >> $out/nix-support/hydra-build-products -- cgit 1.4.1