Skip to content

Commit

Permalink
Merge pull request #6628 from brave/android_unit_tests_specify_emulator
Browse files Browse the repository at this point in the history
[Android] Explicitly specify emulator to run unit tests on
  • Loading branch information
samartnik committed Sep 11, 2020
2 parents 5c92e28 + 67d9390 commit 445b56a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/commands/lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ const test = (suite, buildConfig = config.defaultBuildConfig, options) => {
braveArgs.splice(braveArgs.indexOf('--gtest_output=xml:' + options.output, 1))
braveArgs.push(`--gtest_output=xml:${testSuite}.xml`)
}
if (config.targetOS === 'android') {
// Specify emulator to run tests on
braveArgs.push(`--avd-config tools/android/avd/proto/generic_android28.textpb`)
}
util.run(path.join(config.outputDir, getTestBinary(testSuite)), braveArgs, config.defaultOptions)
})
}
Expand Down

0 comments on commit 445b56a

Please sign in to comment.