commit | 72f11c7165b2f11f5cfcb3ce11fdedaf4ac3498f | [log] [tgz] |
---|---|---|
author | Chenjie Yu <cjyu@google.com> | Thu Dec 28 17:03:43 2017 -0800 |
committer | Chenjie Yu <cjyu@google.com> | Thu Dec 28 17:03:43 2017 -0800 |
tree | bca2288ad9fb93f4c669e1dbb6cd100559d30def | |
parent | ee58e66f8526ac1eb6985f209ce116aa1aed2b45 [diff] |
minor fix to remove temp config file Test: cts test Change-Id: I9f83f22a1dec28494aeedd807cc8ea3955d5555c
diff --git a/hostsidetests/statsd/src/android/cts/statsd/AtomTestCase.java b/hostsidetests/statsd/src/android/cts/statsd/AtomTestCase.java index f591a05..4f52315 100644 --- a/hostsidetests/statsd/src/android/cts/statsd/AtomTestCase.java +++ b/hostsidetests/statsd/src/android/cts/statsd/AtomTestCase.java
@@ -103,6 +103,7 @@ protected void uploadConfig(StatsdConfig config) throws Exception { File configFile = File.createTempFile("statsdconfig", ".config"); + configFile.deleteOnExit(); Files.write(config.toByteArray(), configFile); String remotePath = "/data/" + configFile.getName(); getDevice().pushFile(configFile, remotePath);