Skip to content

Instantly share code, notes, and snippets.

@nelsnelson
Created September 10, 2014 16:47
Show Gist options
  • Save nelsnelson/24719af5f6c9a29f62ea to your computer and use it in GitHub Desktop.
Save nelsnelson/24719af5f6c9a29f62ea to your computer and use it in GitHub Desktop.
pushd /opt/stack/tempest
[[ -d .testrepository ]] || { echo "Initializing tempest workspace"; testr init; }
ps -eaf | grep -v grep | grep qemu-nbd
pgrep -f qemu-nbd | xargs -n1 echo sudo kill -9
ls /dev/nbd* | xargs -n1 sudo qemu-nbd --disconnect
sed -i 's/\#suspend\=true/#suspend=true\nsuspend=false/' /opt/stack/tempest/etc/tempest.conf
sed -i 's/\#rescue\=true/#rescue=true\nrescue=false/' /opt/stack/tempest/etc/tempest.conf
sed -i 's/\#xml_api_v2\=true/#xml_api_v2=true\nxml_api_v2=false/' /opt/stack/tempest/etc/tempest.conf
testr run tempest.api.compute.servers.test_servers.ServersTestJSON.test_update_server_name
testr failing --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment