                           "test/check-existing-metadata.bash"))]
                 ;; 0 exit code means the second script got the
                 ;; metadata- the check is in the bash script
-                (println (environ/env :build-metadata))
                 (is (= 0 (:exit-code res-periodic))
                     (str "the metadata was incorrect in the environment\n"
                          "the test is in check-existing-metadata.bash")))))))

        intake-dir "tmp/git/metadata-intake"
        periodic-dir "tmp/git/metadata-periodic"]
    (try
      (when (.exists (jio/file periodic-dir))
        (io/rmdir-r periodic-dir))
      (when (.exists (jio/file intake-dir))
        (io/rmdir-r intake-dir))
      (with-redefs [email/send* (fn [_ _ _ _ _ plain html attachments]
                                  (reset! email-body html)
                                  ;; to satisfy schema


(use-fixtures :each
  ts/redirect-logging-fixture
  ts/reset-debug-log-fixture
  (fn jvm-death-rattle [f]
    (with-redefs [main/really-die (fn [& args]
                                    ;; tattle if someone tries to kill the JVM
                                    (println "SOMEBODY TRIED TO KILL THE JVM!")
                                    :dontdie)]
      (f))))

(s/deftest main
  ;; Change root bindings for these Vars, affects any execution no
