ARM-CI : Check a device is already mounted while mounting a device. (#6377)
authorSujin Kim <sjsujin.kim@samsung.com>
Fri, 22 Jul 2016 10:04:55 +0000 (19:04 +0900)
committerJan Kotas <jkotas@microsoft.com>
Fri, 22 Jul 2016 10:04:55 +0000 (03:04 -0700)
commitd3f5a70b404386c538053cb0fe1746338ac4d342
tree740767c6c5b8b52300395128212ba1d9cb5c3035
parent9f74aff5752c03aab5f03c1b529f6faf6648cb90
ARM-CI : Check a device is already mounted while mounting a device. (#6377)

Now ARM-CI makes building failure frequently with below messages.(#6329)

http://dotnet-ci.cloudapp.net/job/dotnet_coreclr/job/master/job/arm_emulator_cross_debug_ubuntu_prtest/559/console
00:01:27.252 + sudo umount /opt/linux-arm-emulator-root/dev
00:01:27.260 umount: /opt/linux-arm-emulator-root/dev: device is busy.
00:01:27.260 (In some cases useful info about processes that use
00:01:27.260 the device is found by lsof(8) or fuser(1))
00:01:27.265 Build step 'Execute shell' marked build as failure

I think ARM CI jobs have tried to unmount the same rootfs by an 'arm32_ci_script.sh' at the same time. (At this time, other jobs still are on running...)
So I suggest though the script is exited by any cases, the script would not run un-mounting.
But whenever CI is running and mounting a device, It will check the device is already mounted.
tests/scripts/arm32_ci_script.sh