Unix.putenv "LIBGUESTFS_DEBUG" "1";
Unix.putenv "LIBGUESTFS_TRACE" "1"
+(* Log program output. *)
+let from = "rjones@redhat.com"
+let to_ = "rjones@redhat.com"
+let logfile = log_program_output ()
+let () = eprintf "logging to %s\n%!" logfile
+
let package = "libguestfs"
(* Helper object which stores everything about a version. *)
(* Goal: test a commit. *)
and commit_tested branch commit =
+ onfail (
+ fun _ ->
+ let subject = sprintf "goal: %s: FAILED" goalname in
+ mailto ~from ~subject ~attach:[logfile] to_
+ );
+
let key = sprintf "libguestfs_commit_tested_%s" commit in
target (memory_exists key);