Please ./tools/lint -nocomment -notestpackage.
Fixes: - `test/run-integration-tests.sh:160:75: arithmetic expressions must consist of names and numbers` - `test/run-integration-tests.sh:265:56: arithmetic expressions must consist of names and numbers` - `test/run-integration-tests.sh:295:61: arithmetic expressions must consist of names and numbers` - `test/run-integration-tests.sh:309:49: arithmetic expressions must consist of names and numbers` - `test/run-integration-tests.sh:316:41: arithmetic expressions must consist of names and numbers` - `test/run-integration-tests.sh: run shfmt -i 4 -w test/run-integration-tests.sh` See also: https://circleci.com/gh/weaveworks/weave/8685
This commit is contained in:
1 parent
402fe094f4
commit
28a1578d20
1 file changed
+11
-5
@@ -157,7 +157,8 @@ function create_image() {
|
|||||||
terraform destroy -force "$DIR/../tools/provisioning/gcp"
|
terraform destroy -force "$DIR/../tools/provisioning/gcp"
|
||||||
rm terraform.tfstate*
|
rm terraform.tfstate*
|
||||||
echo
|
echo
|
||||||
greenly echo "> Created GCP image $IMAGE_NAME in $(date -u -d @$(($(date +%s) - begin_img)) +"%T")."
|
local end_img=$(date +%s)
|
||||||
|
greenly echo "> Created GCP image $IMAGE_NAME in $(date -u -d @$((end_img - begin_img)) +"%T")."
|
||||||
else
|
else
|
||||||
wait_for_image
|
wait_for_image
|
||||||
fi
|
fi
|
||||||
@@ -261,7 +262,8 @@ function provision() {
|
|||||||
esac
|
esac
|
||||||
[ "$1" == "on" ] && set_hosts
|
[ "$1" == "on" ] && set_hosts
|
||||||
echo
|
echo
|
||||||
greenly echo "> Provisioning took $(date -u -d @$(($(date +%s) - begin_prov)) +"%T")."
|
local end_prov=$(date +%s)
|
||||||
|
greenly echo "> Provisioning took $(date -u -d @$((end_prov - begin_prov)) +"%T")."
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_with_ansible() {
|
function configure_with_ansible() {
|
||||||
@@ -290,7 +292,8 @@ function configure() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
greenly echo "> Configuration took $(date -u -d @$(($(date +%s) - begin_conf)) +"%T")."
|
local end_conf=$(date +%s)
|
||||||
|
greenly echo "> Configuration took $(date -u -d @$((end_conf - begin_conf)) +"%T")."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,13 +306,16 @@ function run_tests() {
|
|||||||
"$DIR/run_all.sh" "$@"
|
"$DIR/run_all.sh" "$@"
|
||||||
local status=$?
|
local status=$?
|
||||||
echo
|
echo
|
||||||
greenly echo "> Tests took $(date -u -d @$(($(date +%s) - begin_tests)) +"%T")."
|
local end_tests=$(date +%s)
|
||||||
|
greenly echo "> Tests took $(date -u -d @$((end_tests - begin_tests)) +"%T")."
|
||||||
return $status
|
return $status
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# shellcheck disable=SC2155
|
||||||
function end() {
|
function end() {
|
||||||
echo
|
echo
|
||||||
echo "> Build took $(date -u -d @$(($(date +%s) - begin)) +"%T")."
|
local end_time=$(date +%s)
|
||||||
|
echo "> Build took $(date -u -d @$((end_time - begin)) +"%T")."
|
||||||
}
|
}
|
||||||
|
|
||||||
function echo_export_hosts() {
|
function echo_export_hosts() {
|
||||||
|
|||||||
Reference in new issue
Block a user