crash-reporter: Fix unclean_shutdown_collector_test to work by itself

The CantDisable test was failing because it couldn't properly fake the
enabling of the crash collector -- which meant that the disable didn't
actually fail.  The reason was that the "test" directory was being removed
during SetUp().  I also added/improved some error-checking that helped me
track down various unittest failures.

TEST=Ran unittests

Change-Id: I8cf50dbd0d5187b0028c8cf16ae10a4f68bb160f
Commit-Ready: Michael Krebs <>
Tested-by: Michael Krebs <>
Reviewed-by: Ben Chan <>
2 files changed
tree: d15bdb8fb8c18f8e8e532e7cf9b605bf47f285ca
  1. crash_reporter/