From e1627ea60e98161591ca7f06e3238f41c79e177a Mon Sep 17 00:00:00 2001 From: Bing Liu Date: Mon, 2 Mar 2020 09:54:11 -0800 Subject: [PATCH] Supporting tests and app hosts in subfolders (#419) If the test or app host is in subfolders, we are not able to find the generated zip/ipa files. Using short_path instead of basename would resolve the issue. --- bptestrunner/bluepill_batch_test.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bptestrunner/bluepill_batch_test.bzl b/bptestrunner/bluepill_batch_test.bzl index 1d2be0cd..7e2bcdc2 100644 --- a/bptestrunner/bluepill_batch_test.bzl +++ b/bptestrunner/bluepill_batch_test.bzl @@ -20,11 +20,11 @@ def _bluepill_batch_test_impl(ctx): test_host = test_info.test_host test_bundle = test_info.test_bundle if test_bundle: - test_bundle_paths.append("\"{}\"".format(test_bundle.basename)) + test_bundle_paths.append("\"{}\"".format(test_bundle.short_path)) runfiles.append(test_bundle) if test_host and test_host not in runfiles: - test_host_paths.append("\"{}\"".format(test_host.basename)) + test_host_paths.append("\"{}\"".format(test_host.short_path)) runfiles.append(test_host) #test_plan