From fd9219b522a4640df5f1ae3242f36aa078feccf4 Mon Sep 17 00:00:00 2001 From: Kaido Kert Date: Mon, 25 Mar 2024 00:02:24 -0700 Subject: [PATCH] Uniformify --- starboard/stub/launcher.py | 0 starboard/tools/platform_config_test.py | 41 +++++++------------------ 2 files changed, 11 insertions(+), 30 deletions(-) create mode 100644 starboard/stub/launcher.py diff --git a/starboard/stub/launcher.py b/starboard/stub/launcher.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/starboard/tools/platform_config_test.py b/starboard/tools/platform_config_test.py index 26fc683c2366..95ca9e65fe61 100644 --- a/starboard/tools/platform_config_test.py +++ b/starboard/tools/platform_config_test.py @@ -33,7 +33,7 @@ def test_loop_all_platforms(self): self.assertEqual(config.GetName(), conf) def test_load_get_stub_config(self): - self.load_get_config('stub', 'stub', has_launcher=False) + self.load_get_config('stub', 'stub') def test_load_get_linux_config(self): self.load_get_config( @@ -71,23 +71,19 @@ def test_load_android_arm_config(self): self.load_get_config( 'android-arm', 'android/arm', - deploy_path=['*.apk'], test_filters=[('renderer_test', 'PixelTest.TooManyGlyphs'), ('blackbox', 'deep_links')]) def test_load_android_arm64_config(self): - self.load_get_config( - 'android-arm64', 'android/arm64', deploy_path=['*.apk']) + self.load_get_config('android-arm64', 'android/arm64') def test_load_android_arm64_vulkan_config(self): - self.load_get_config( - 'android-arm64-vulkan', 'android/arm64/vulkan', deploy_path=['*.apk']) + self.load_get_config('android-arm64-vulkan', 'android/arm64/vulkan') def test_load_android_x86_config(self): self.load_get_config( 'android-x86', 'android/x86', - deploy_path=['*.apk'], test_filters=[('renderer_test', 'PixelTest.TooManyGlyphs'), ('net_unittests', 'FILTER_ALL')]) @@ -114,10 +110,7 @@ def test_load_win32_config(self): def test_load_xb1_config(self): self.load_get_config( - 'xb1', - 'xb1', - deploy_path=['appx/*'], - test_filters=[('base_unittests', 'PathServiceTest.Get')]) + 'xb1', 'xb1', test_filters=[('base_unittests', 'PathServiceTest.Get')]) def test_evergreen_x64_config(self): self.load_get_config('evergreen-x64', 'evergreen/x64', test_filters=[]) @@ -138,15 +131,11 @@ def test_evergreen_arm_softfp_config(self): def test_evergreen_arm64_config(self): self.load_get_config('evergreen-arm64', 'evergreen/arm64', test_filters=[]) - def load_get_config( - self, - conf: str, - path: str, - app_env=None, - deploy_path=None, - test_filters=None, - has_launcher=True, - ): + def load_get_config(self, + conf: str, + path: str, + app_env=None, + test_filters=None): if app_env is None: app_env = {} if test_filters is None: @@ -160,16 +149,8 @@ def load_get_config( for test in ['nplb', 'common_test']: self.assertIn(test, config.GetTestTargets()) self.assertEqual(config.GetTestBlackBoxTargets(), []) - if deploy_path: - self.assertEqual(config.GetDeployPathPatterns(), deploy_path) - else: - with self.assertRaises(NotImplementedError): - config.GetDeployPathPatterns() - if has_launcher: - self.assertIsNotNone(config.GetLauncher()) - self.assertIsNotNone(config.GetLauncherPath()) - else: - self.assertIsNone(config.GetLauncher()) + self.assertIsNotNone(config.GetLauncherPath()) + self.assertIsNotNone(config.GetLauncher()) app_conf = config.GetApplicationConfiguration('cobalt') self.assertEqual(app_conf.GetName(), 'cobalt') self.assertEqual(app_conf.GetDirectory(), os.path.join(conf_dir, 'cobalt'))