Only use TEST_APK_NEXT starting from V

The Next app is only necessary in development branches and right now the
in-development SDK is V.

Test: TH
Change-Id: I6aa72d70bc124ae7cf40962b172965d1f0fdb437
This commit is contained in:
Yuyang Huang
2023-08-28 16:19:46 +09:00
parent 72bbb446ef
commit 04d1ce9ea2

View File

@@ -48,7 +48,7 @@ abstract class HostsideNetworkTestCase extends BaseHostJUnit4Test {
@BeforeClassWithInfo @BeforeClassWithInfo
public static void setUpOnceBase(TestInformation testInfo) throws Exception { public static void setUpOnceBase(TestInformation testInfo) throws Exception {
DeviceSdkLevel deviceSdkLevel = new DeviceSdkLevel(testInfo.getDevice()); DeviceSdkLevel deviceSdkLevel = new DeviceSdkLevel(testInfo.getDevice());
String testApk = deviceSdkLevel.isDeviceAtLeastT() ? TEST_APK_NEXT : TEST_APK; String testApk = deviceSdkLevel.isDeviceAtLeastV() ? TEST_APK_NEXT : TEST_APK;
uninstallPackage(testInfo, TEST_PKG, false); uninstallPackage(testInfo, TEST_PKG, false);
installPackage(testInfo, testApk); installPackage(testInfo, testApk);