forward the the pairing password setting to the JDK

This commit is contained in:
Michele Balistreri 2019-03-21 09:46:19 +03:00
parent ee12e6e1a3
commit c803265ac1
1 changed files with 7 additions and 1 deletions

View File

@ -39,6 +39,11 @@ if (!testTarget) {
testTarget = 'card' testTarget = 'card'
} }
def pairingPass = project.properties['im.status.keycard.test.pairing']
if (!pairingPass) {
pairingPass = 'KeycardTest'
}
repositories { repositories {
mavenCentral() mavenCentral()
@ -85,7 +90,8 @@ compileTestJava {
} }
afterEvaluate { afterEvaluate {
def jvmArgs = ["-Dim.status.keycard.test.target=${testTarget}"] def jvmArgs = ["-Dim.status.keycard.test.target=${testTarget}", "-Dim.status.keycard.test.pairing=${pairingPass}"]
if (testTarget == 'simulator') { if (testTarget == 'simulator') {
jvmArgs.push('-noverify') jvmArgs.push('-noverify')
} }