From e09faf4bb3fa27342ca279a7cf5ecbf304c106bf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 10 Jan 2011 12:22:24 +0000 Subject: [PATCH] * Handle the case where /tmp/coverage-data already exists. svn path=/nixos/trunk/; revision=25486 --- modules/testing/test-instrumentation.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/testing/test-instrumentation.nix b/modules/testing/test-instrumentation.nix index 24fc1a816597..0373ad0cf935 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