summary refs log tree commit diff
path: root/modules/testing/test-instrumentation.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-10-30 17:27:14 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-10-30 17:27:14 +0100
commit1da362b34b0dbe3245273a56a3152230484089b0 (patch)
tree1b2bd000ec9c056b153ba8a237dc9591f7ccf014 /modules/testing/test-instrumentation.nix
parente5d4524dda10b50f42c0c3350567170dcd67f3aa (diff)
downloadnixpkgs-1da362b34b0dbe3245273a56a3152230484089b0.tar
nixpkgs-1da362b34b0dbe3245273a56a3152230484089b0.tar.gz
nixpkgs-1da362b34b0dbe3245273a56a3152230484089b0.tar.bz2
nixpkgs-1da362b34b0dbe3245273a56a3152230484089b0.tar.lz
nixpkgs-1da362b34b0dbe3245273a56a3152230484089b0.tar.xz
nixpkgs-1da362b34b0dbe3245273a56a3152230484089b0.tar.zst
nixpkgs-1da362b34b0dbe3245273a56a3152230484089b0.zip
Fix coverage data collection
http://hydra.nixos.org/build/3253046
Diffstat (limited to 'modules/testing/test-instrumentation.nix')
-rw-r--r--modules/testing/test-instrumentation.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/testing/test-instrumentation.nix b/modules/testing/test-instrumentation.nix
index c6c95e63af1..8ceffbcb9ec 100644
--- a/modules/testing/test-instrumentation.nix
+++ b/modules/testing/test-instrumentation.nix
@@ -55,10 +55,6 @@ let kernel = config.boot.kernelPackages.kernel; in
 
         # Coverage data is written into /tmp/coverage-data.
         mkdir -p /tmp/xchg/coverage-data
-
-        # Mount debugfs to gain access to the kernel coverage data (if
-        # available).
-        mount -t debugfs none /sys/kernel/debug || true
       '';
 
     # If the kernel has been built with coverage instrumentation, make
@@ -80,7 +76,7 @@ let kernel = config.boot.kernelPackages.kernel; in
     networking.defaultGateway = mkOverride 150 "";
     networking.nameservers = mkOverride 150 [ ];
 
-    system.upstartEnvironment.GCOV_PREFIX = "/tmp/xchg/coverage-data";
+    boot.systemd.globalEnvironment.GCOV_PREFIX = "/tmp/xchg/coverage-data";
 
     system.requiredKernelConfig = with config.lib.kernelConfig; [
       (isYes "SERIAL_8250_CONSOLE")