summaryrefslogtreecommitdiffstats
path: root/tools/dalvik_jtreg/java/dalvik/jtreg/Adb.java
diff options
context:
space:
mode:
authorJesse Wilson <jessewilson@google.com>2009-11-04 11:18:01 -0800
committerJesse Wilson <jessewilson@google.com>2009-11-04 11:21:25 -0800
commitbc72f7bfc8cb0be6031ec35814b28ca57fad9020 (patch)
tree3336034cba70d15823156eeeab5c348e8c4157e7 /tools/dalvik_jtreg/java/dalvik/jtreg/Adb.java
parentc26b3845b5c96b5612d9a9d98411b0798d7658cb (diff)
downloadlibcore-bc72f7bfc8cb0be6031ec35814b28ca57fad9020.zip
libcore-bc72f7bfc8cb0be6031ec35814b28ca57fad9020.tar.gz
libcore-bc72f7bfc8cb0be6031ec35814b28ca57fad9020.tar.bz2
Emitting JUnit+Ant style XML from the jtreg test runner.
This change adds some unfortunate code duplication between the jtreg runner and the CoreTestSuite runner. I'd like to eventually loop back and create a unified test runner for either type of test.
Diffstat (limited to 'tools/dalvik_jtreg/java/dalvik/jtreg/Adb.java')
-rw-r--r--tools/dalvik_jtreg/java/dalvik/jtreg/Adb.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/dalvik_jtreg/java/dalvik/jtreg/Adb.java b/tools/dalvik_jtreg/java/dalvik/jtreg/Adb.java
index b7813d8..ef8508e 100644
--- a/tools/dalvik_jtreg/java/dalvik/jtreg/Adb.java
+++ b/tools/dalvik_jtreg/java/dalvik/jtreg/Adb.java
@@ -24,8 +24,11 @@ import java.io.File;
final class Adb {
public void mkdir(File name) {
- new Command("adb", "shell", "mkdir", name.toString())
- .execute();
+ new Command("adb", "shell", "mkdir", name.toString()).execute();
+ }
+
+ public void rm(File name) {
+ new Command("adb", "shell", "rm", "-r", name.toString()).execute();
}
public void push(File local, File remote) {