Add a preparer template for adb integration tests
Test: unit tests
Bug: 115724723
Change-Id: Ib494bc87acc923dc328ae79eb40dda1c08ac1a56
diff --git a/res/config/adb/adb-preparers.xml b/res/config/adb/adb-preparers.xml
new file mode 100644
index 0000000..bf5f369
--- /dev/null
+++ b/res/config/adb/adb-preparers.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<configuration description="Preparers that runs before adb integration tests">
+ <target_preparer class="com.android.tradefed.targetprep.SemaphoreTokenTargetPreparer">
+ <option name="disable" value="false" />
+ </target_preparer>
+
+ <target_preparer class="com.android.tradefed.targetprep.adb.AdbStopServerPreparer">
+ <!-- stop current running adb only -->
+ <option name="restart-new-adb-version" value="false" />
+ </target_preparer>
+</configuration>