Overwrite permission in coreoverlay generation
authorHyeongseok Oh <hseok82.oh@samsung.com>
Tue, 11 Apr 2017 07:49:34 +0000 (16:49 +0900)
committerHyeongseok Oh <hseok82.oh@samsung.com>
Tue, 11 Apr 2017 07:49:34 +0000 (16:49 +0900)
fix runtest.sh to overwrite corerun's permission in coreoverlay generation

Commit migrated from https://github.com/dotnet/coreclr/commit/6759dfaa7c8048a84464f99a0a060f0b4deea1f6

src/coreclr/tests/runtest.sh

index 402b924..e045813 100755 (executable)
@@ -354,7 +354,7 @@ function create_core_overlay {
     mkdir "$coreOverlayDir"
 
     cp -f -v "$coreFxBinDir/"* "$coreOverlayDir/" 2>/dev/null
-    cp -f -v "$coreClrBinDir/"* "$coreOverlayDir/" 2>/dev/null
+    cp -f -p -v "$coreClrBinDir/"* "$coreOverlayDir/" 2>/dev/null
     if [ -d "$mscorlibDir/bin" ]; then
         cp -f -v "$mscorlibDir/bin/"* "$coreOverlayDir/" 2>/dev/null
     fi