ad14da9eab
The current test scripts created a lot of data inside the SPDK repo; move this to /var/tmp/ceph (where the image is already created) to avoid polluting the repo working copy. Change-Id: If895baecfa7fef80733f0d629f091a479a634a52 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/401647 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
14 lines
191 B
Bash
Executable File
14 lines
191 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
base_dir=/var/tmp/ceph
|
|
image=${base_dir}/ceph_raw.img
|
|
dev_backend=/dev/ceph
|
|
|
|
pkill -9 ceph
|
|
sleep 3
|
|
umount /dev/loop200p2
|
|
losetup -d $dev_backend
|
|
rm -rf $base_dir
|