File: client

package info (click to toggle)
python-aodhclient 0.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 444 kB
  • ctags: 295
  • sloc: python: 2,294; sh: 41; makefile: 33
file content (17 lines) | stat: -rwxr-xr-x 369 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#-------------------------
# Testing client utilities
#-------------------------
set -e

HELP_CLIENTS=('python2-aodh' 'python3-aodh')
for client in "${HELP_CLIENTS[@]}"; do
    RET=$($client -h 2>&1 > /dev/null)

    if [[ $RET ]]; then
        echo "ERROR, ${client} is not running" >&2
        exit 1
    else
        echo "OK: ${client} ran"
    fi
done