This patch confirms that the rados loop device is removed from the system, avioding latent errors on the next build. Change-Id: Ic8d833aeb4808ba9b0bb462a93b65377e4f7616d Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/372327 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
16 lines
241 B
Bash
Executable File
16 lines
241 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
base_dir=`pwd`
|
|
home_folder=${base_dir}/ceph
|
|
image=${base_dir}/../../../output/ceph_raw.img
|
|
dev_backend=/dev/ceph
|
|
|
|
pkill -9 ceph
|
|
sleep 3
|
|
umount /dev/loop200p2
|
|
losetup -d $dev_backend
|
|
rm -rf $home_folder
|
|
rm $image
|