Debian Codegraph @

debian/tests/upstream

raw
1 #!/bin/bash
2
3 # Run standalone unit tests in the same manner done by upstream.
4
5 set -eux
6
7 sed -i 's/# enable-debug-command no/enable-debug-command local/' /etc/valkey/valkey.conf
8 sed -i 's/# enable-module-command no/enable-module-command local/' /etc/valkey/valkey.conf
9 sed -i 's/mymaster/valkey-py-test/g' /etc/valkey/sentinel.conf
10
11 systemctl restart valkey-server
12 systemctl restart valkey-sentinel
13
14 ./util/wait-for-it.sh localhost:6379
15
16 for py in $(py3versions --supported)
17 do
18 ${py} -m pytest -W always -m 'onlynoncluster' --sentinels 'localhost:26379'
19 done