Merge "Move dlux Sonar scan to Sonarcloud"
[releng/builder.git] / jjb / packaging / test-ansible-rpm-upgrade.sh
1 #!/bin/bash
2
3 # Uninstall ODL from previous test
4 # This is to ensure these tests run independant
5 # from any other tests
6 sudo yum remove opendaylight -y
7
8 # Remove the ODL directory
9 sudo rm -rf /opt/opendaylight
10
11 # Execute the upgrade tests
12 sudo ansible-playbook -i "localhost," -c local "$WORKSPACE"/packaging-ansible/tests/test-odl-upgrade.yaml -v