Skip to content
Snippets Groups Projects
Verified Commit 16c364f1 authored by David Hoese's avatar David Hoese
Browse files

Fix tile gen CI test

parent 5c2b2809
No related branches found
No related tags found
No related merge requests found
...@@ -102,14 +102,14 @@ run_geo2grid_checks() { ...@@ -102,14 +102,14 @@ run_geo2grid_checks() {
run_tile_gen_checks() { run_tile_gen_checks() {
count=0 count=0
while true; do while true; do
num_files=$(kubectl exec -n $ns ${TILEGEN_POD_NAME} -- ls -1 /dst/tiles/g16/abi/radm1/*/*.shp | wc -l || echo 0) num_files=$(kubectl exec -n $ns ${TILEGEN_POD_NAME} -- ls -1 /dst/tiles/g16/abi/radm1/C01/ | wc -l || echo 0)
let count=count+1 let count=count+1
if [[ $num_files -gt 16 ]]; then if [[ $num_files -gt 3 ]]; then
debug "Got at least 16 files ($num_files)" debug "Got at least 3 files ($num_files)"
break break
fi fi
if [[ $count -gt 10 ]]; then if [[ $count -gt 10 ]]; then
error "Took too long for Geo2Grid to produce files ($num_files so far)" error "Took too long for tile generation to produce its shape file"
fi fi
debug "Found $num_files files, waiting for more..." debug "Found $num_files files, waiting for more..."
sleep 10 sleep 10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment