Merge "Fix tests/test_functions.bash"
This commit is contained in:
commit
48a9dd4d3d
@ -31,7 +31,7 @@ function build_test_image() {
|
|||||||
echo "Found image $img_path."
|
echo "Found image $img_path."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! docker image | grep $base_dest/image ; then
|
if ! docker images | grep $base_dest/image ; then
|
||||||
echo "Error: No docker image with name $base_dest/image found!"
|
echo "Error: No docker image with name $base_dest/image found!"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
@ -42,7 +42,9 @@ function build_test_image() {
|
|||||||
|
|
||||||
trap EXIT
|
trap EXIT
|
||||||
rm -rf $dest_dir
|
rm -rf $dest_dir
|
||||||
|
if docker images | grep $base_dest/image ; then
|
||||||
docker rmi $base_dest/image
|
docker rmi $base_dest/image
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_disk_element_test() {
|
function run_disk_element_test() {
|
||||||
|
Loading…
Reference in New Issue
Block a user