1 # Inject the sanitytest jar as a controller plugin
2 cp ./target/dependency/sanitytest*.jar ./target/distribution.opendaylight-osgipackage/opendaylight/plugins
4 # Store the current working directory in a variable so that we can get back to it later
7 # Switch to the distribution folder
8 cd ./target/distribution.opendaylight-osgipackage/opendaylight/
13 # Store the exit value of the controller in a variable
16 # Switch back to the directory from which this script was invoked
19 # Remove the sanitytest jar from the plugins directory
20 rm ./target/distribution.opendaylight-osgipackage/opendaylight/plugins/sanitytest*.jar
22 # Exit using the exit code that we had captured earlier after running the controller