site_linux_router: remove /var/lib/metrics/uma-events

Our lab routers don't run Chrome and don't have any metrics reporting.
But they do still manage to accumulate on disk.

While we haven't come up with a good plan for fixing crbug.com/839164,
we can hack around the problem by just removing the file.

BUG=chromium:839164, chromium:930841
TEST=generate large /var/lib/metrics/uma-events; run WiFi tests

Change-Id: Ic55c25306e83b9a215535ff052af14140b0392fd
Reviewed-on: https://chromium-review.googlesource.com/1465181
Commit-Ready: Brian Norris <briannorris@chromium.org>
Tested-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
diff --git a/server/site_linux_router.py b/server/site_linux_router.py
index 51464d4..7067529 100644
--- a/server/site_linux_router.py
+++ b/server/site_linux_router.py
@@ -186,6 +186,10 @@
         self.dhcpd_conf = '/tmp/dhcpd.%s.conf'
         self.dhcpd_leases = '/tmp/dhcpd.leases'
 
+        # TODO(crbug.com/839164): some routers fill their stateful partition
+        # with uncollected metrics.
+        self.host.run('rm -f /var/lib/metrics/uma-events', ignore_status=True)
+
         # Log the most recent message on the router so that we can rebuild the
         # suffix relevant to us when debugging failures.
         last_log_line = self.host.run('tail -1 /var/log/messages',