anchor.diff:  
   export HOME=$(mktemp -d /tmp/diego-smoke-tests.XXXXX)
   
  +trace_output_dir=/var/vcap/sys/log/smoke_tests
  +
  +mkdir -p ${trace_output_dir}
  +export CF_TRACE=${trace_output_dir}/CATS-TRACE-Diego-Smoke-Tests.txt
  +
   cf api <%= p("diego.smoke_tests.api") %> \
     --skip-ssl-validation=<%= p("diego.ssl.skip_cert_verify").inspect %>
   
  
positive.code: # assume org exists, otherwise we have to be admin, which is a bad idea
  cf target -o <%= p("diego.smoke_tests.org") %>
  
  cf create-space <%= p("diego.smoke_tests.space") %>
  cf target -s <%= p("diego.smoke_tests.space") %>
  
  
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
  