anchor.diff:  # assume org exists, otherwise we have to be admin, which is a bad idea
   cf target -o <%= p("diego.smoke_tests.org") %>
   
  +# delete and recreate the space each time to clear out old apps and routes
  +cf delete-space -f <%= p("diego.smoke_tests.space") %> || true
   cf create-space <%= p("diego.smoke_tests.space") %>
   cf target -s <%= p("diego.smoke_tests.space") %>
   
  
positive.code: 
  export HOME=$(mktemp -d /tmp/diego-smoke-tests.XXXXX)
  
  cf api <%= p("diego.smoke_tests.api") %> \
    --skip-ssl-validation=<%= p("diego.ssl.skip_cert_verify").inspect %>
  
  
negative.code: cd /var/vcap/packages/smoke-tests
  
  # assumes dora asset lives in working directory
  ./diego-smoke-tests.test || EXITSTATUS=$?
  
  for i in ${trace_output_dir}/*.txt; do
    if [ -e "$i" ]; then
      mv $i $i.log # needed to make downloading via 'bosh logs' work
    fi
  done
  
  exit $EXITSTATUS
  