Fix ARM32/Linux release CI test failure (dotnet/coreclr#11008)
authorHyeongseok Oh <hseok82.oh@samsung.com>
Mon, 17 Apr 2017 15:56:19 +0000 (00:56 +0900)
committerGaurav Khanna <gkhanna@microsoft.com>
Mon, 17 Apr 2017 15:56:19 +0000 (08:56 -0700)
* Fix ARM32/Linux release CI test failure

Fix ARM32/Linux release CI test failure by removing libcoreclrptprovider.so from CoreFX build results.

* Fix typo

Fix typo in netci.groovy

Commit migrated from https://github.com/dotnet/coreclr/commit/591be50e6f74b821a6d2a7776bbae0b33a9e6809

src/coreclr/netci.groovy
src/coreclr/tests/scripts/arm32_ci_test.sh

index 05e5d7f..247da03 100755 (executable)
@@ -1640,6 +1640,11 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR
                     if (os != 'Tizen') {
                         buildCommands += "chmod a+x ./bin/CoreFxBinDir/corerun"
                     }
+                    // Test environment emulation using docker and qemu has some problem to use lttng library.
+                    // We should remove libcoreclrtraceptprovider.so to avoid test hang.
+                    if (os == 'Ubuntu') {
+                        buildCommands += "rm -f -v ./bin/CoreFxBinDir/libcoreclrtraceptprovider.so"
+                    }
 
                     // Call the ARM CI script to cross build and test using docker
                     buildCommands += """./tests/scripts/arm32_ci_script.sh \\
index 995bbf8..2f0b031 100755 (executable)
@@ -114,7 +114,8 @@ mount -o bind ${CORECLR_DIR} ${__ROOTFS_DIR}${ARM_CHROOT_HOME_DIR}
 
 # Test environment emulation using docker and qemu has some problem to use lttng library.
 # We should remove libcoreclrtraceptprovider.so to avoid test hang.
-rm -f ${__ROOTFS_DIR}${ARM_CHROOT_HOME_DIR}/bin/Product/${__buildDirName}/libcoreclrtraceptprovider.so
+rm -f -v ${__ROOTFS_DIR}${ARM_CHROOT_HOME_DIR}/bin/Product/${__buildDirName}/libcoreclrtraceptprovider.so
+rm -f -v ${__ROOTFS_DIR}${ARM_CHROOT_HOME_DIR}/bin/CoreFxBinDir/libcoreclrtraceptprovider.so
 
 chroot ${__ROOTFS_DIR} /bin/bash -x <<EOF
     cd ${ARM_CHROOT_HOME_DIR}