diff options
author | liamfallon <liam.fallon@est.tech> | 2022-09-08 09:56:47 +0100 |
---|---|---|
committer | Liam Fallon <liam.fallon@est.tech> | 2022-09-08 14:21:06 +0000 |
commit | c4bd9e44e4c9a9aac1f54a490bc52d231136500c (patch) | |
tree | 628e854ef01d2ae34123c09aae14b5dc8eb3a391 /csit/stop-all.sh | |
parent | 841f9712e48828396faff6adcc1b20186e952430 (diff) |
Improve debugging support for CSITs
The following improvements are added:
- "docker ps" command added to the wait_for_port.sh script
tp show status of the containers coming up and down
- "docker-compose logs" added to the end of the test runs
to print out the standard output from the containers
- Add standard output logging to all containers
- Some cleanup and use of better names
Issue-ID: POLICY-4350
Change-Id: I3ae8c59dba64f9c267f310366bb4a2a6ffd5d418
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'csit/stop-all.sh')
-rwxr-xr-x | csit/stop-all.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/csit/stop-all.sh b/csit/stop-all.sh new file mode 100755 index 00000000..4e6b0aa6 --- /dev/null +++ b/csit/stop-all.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# +# ============LICENSE_START==================================================== +# Copyright (C) 2022 Nordix Foundation. +# ============================================================================= +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END====================================================== + +SCRIPTS=$(git rev-parse --show-toplevel) +export SCRIPTS="${SCRIPTS}"/csit + +source "${SCRIPTS}"/get-versions.sh + +docker-compose -f "${SCRIPTS}"/docker-compose-all.yml down |