[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-68.1.0esr-9.0-1] Bug 25741 - TBA: Exclude unwanted Stumbler tests



commit c789cf909fdbca70d68cd833ce037a05bd13b604
Author: Matthew Finkel <Matthew.Finkel@xxxxxxxxx>
Date:   Mon Apr 16 13:47:48 2018 +0000

    Bug 25741 - TBA: Exclude unwanted Stumbler tests
    
    When the stumbler service is ifdef-disabled because MOZ_ANDROID_MLS_STUMBLER
    is not defined, then the unit test compilation fails because some values are
    never declared and defined. We exclude all testStumbler*.java files from
    the robocop gecko test source tree.
---
 mobile/android/app/build.gradle | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mobile/android/app/build.gradle b/mobile/android/app/build.gradle
index 1267f849ee3a..c6a0bc45d56f 100644
--- a/mobile/android/app/build.gradle
+++ b/mobile/android/app/build.gradle
@@ -190,6 +190,11 @@ android {
         androidTest {
             java {
                 srcDir "${topsrcdir}/mobile/android/tests/browser/robocop/src"
+
+                if (!mozconfig.substs.MOZ_ANDROID_MLS_STUMBLER) {
+                    exclude 'org/mozilla/gecko/tests/testStumbler*.java'
+                }
+
                 // Bug 1229149 tracks pushing this into a :services Gradle project.
                 srcDir "${topsrcdir}/mobile/android/services/src/androidTest/java"
                 srcDir "${topsrcdir}/mobile/android/tests/browser/junit3/src"



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits