Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (25 sloc) 0.55 kb
#!/bin/bash
backf=`mktemp`
rm $backf
cd $CLOUD_CLIENT_HOME
./bin/grid-proxy-init.sh
./bin/cloud-client.sh --transfer --sourcefile $NIMBUS_SOURCE_TEST_IMAGE
if [ $? -ne 0 ]; then
rm $backf
echo "upload failed"
exit 1
fi
./bin/cloud-client.sh --delete --name $NIMBUS_TEST_IMAGE
if [ $? -ne 0 ]; then
rm $backf
echo "delete failed"
exit 1
fi
./bin/cloud-client.sh --download --name $NIMBUS_TEST_IMAGE --localfile $backf
if [ $? -eq 0 ]; then
rm $backf
echo "download should have failed"
exit 1
fi
rm $backf
exit 0
Jump to Line
Something went wrong with that request. Please try again.