aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRadosław Piliszek <radoslaw.piliszek@gmail.com>2020-04-24 15:57:55 +0200
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2020-04-24 15:57:55 +0200
commit3036c7cfda0a6ef01f7eb3ac25c70ba2cddb2f23 (patch)
treebc4bf932706ea2e1ad16c86329ddc07e2d339864 /tests
parent9251315b36e3aad4aa9f0bcee3d239105eb7abd3 (diff)
downloadkolla-ansible-3036c7cfda0a6ef01f7eb3ac25c70ba2cddb2f23.tar.gz
kolla-ansible-3036c7cfda0a6ef01f7eb3ac25c70ba2cddb2f23.zip
CI: Make bashate happy
Bashate warned on init-swift.sh because of E043 -- arithmetic compound has inconsistent return semantics: (( next_port++ )) New Zuul reported that on every change as a warning. This is fixed here. This change makes Bashate always produce errors so that we do not introduce such warnings again. Change-Id: I40166b377ec2580e17901375b636183bca492d3a
Diffstat (limited to 'tests')
-rwxr-xr-xtests/init-swift.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/init-swift.sh b/tests/init-swift.sh
index f0e8bcd4d..c5cfb2856 100755
--- a/tests/init-swift.sh
+++ b/tests/init-swift.sh
@@ -44,7 +44,7 @@ function init_swift_logged {
/etc/kolla/config/swift/$ring.builder
# next ring = next port
- (( next_port++ ))
+ next_port=$((next_port+1))
done
}