9945: address a bunch of review comments.
[arvados.git] / build / package-testing / test-package-arvados-node-manager.sh
index e2ada8ed62c492ac45517931ad37eb187f0affcb..9300f4cc6901af136fc0f93384ca5be8e45aa9d5 100755 (executable)
@@ -4,19 +4,12 @@
 # SPDX-License-Identifier: AGPL-3.0
 
 set -e
-arvados-node-manager --version
-set +e
 
-PYTHON=`ls /usr/share/python2.7/dist/arvados-node-manager/bin/python2.7`
+arvados-node-manager --version
 
-if [ "$PYTHON" != "" ]; then
-  set -e
-  exec $PYTHON <<EOF
+exec /usr/share/python2.7/dist/arvados-node-manager/bin/python2.7 <<EOF
 import libcloud.compute.types
 import libcloud.compute.providers
 libcloud.compute.providers.get_driver(libcloud.compute.types.Provider.AZURE_ARM)
 print "Successfully imported compatible libcloud library"
 EOF
-else
-       exit 1
-fi