summary refs log tree commit diff
path: root/modules/testing/test-instrumentation.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2011-01-10 12:22:24 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2011-01-10 12:22:24 +0000
commite09faf4bb3fa27342ca279a7cf5ecbf304c106bf (patch)
treeb6a5c675deb03bcaaffab6c29d74692f391a2e75 /modules/testing/test-instrumentation.nix
parent8f831338df6d0a6362ee1e56f0d33307de48643e (diff)
downloadnixpkgs-e09faf4bb3fa27342ca279a7cf5ecbf304c106bf.tar
nixpkgs-e09faf4bb3fa27342ca279a7cf5ecbf304c106bf.tar.gz
nixpkgs-e09faf4bb3fa27342ca279a7cf5ecbf304c106bf.tar.bz2
nixpkgs-e09faf4bb3fa27342ca279a7cf5ecbf304c106bf.tar.lz
nixpkgs-e09faf4bb3fa27342ca279a7cf5ecbf304c106bf.tar.xz
nixpkgs-e09faf4bb3fa27342ca279a7cf5ecbf304c106bf.tar.zst
nixpkgs-e09faf4bb3fa27342ca279a7cf5ecbf304c106bf.zip
* Handle the case where /tmp/coverage-data already exists.
svn path=/nixos/trunk/; revision=25486
Diffstat (limited to 'modules/testing/test-instrumentation.nix')
-rw-r--r--modules/testing/test-instrumentation.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/testing/test-instrumentation.nix b/modules/testing/test-instrumentation.nix
index 24fc1a81659..0373ad0cf93 100644
--- a/modules/testing/test-instrumentation.nix
+++ b/modules/testing/test-instrumentation.nix
@@ -52,8 +52,8 @@ in
         # it to the host filesystem so that we don't need to copy it
         # on shutdown.
         ( eval $(cat /proc/cmdline)
-          mkdir /hostfs/$hostTmpDir/coverage-data
-          ln -s /hostfs/$hostTmpDir/coverage-data /tmp/coverage-data
+          mkdir -p /hostfs/$hostTmpDir/coverage-data
+          ln -sfn /hostfs/$hostTmpDir/coverage-data /tmp/coverage-data
         )
 
         # Mount debugfs to gain access to the kernel coverage data (if