Skip to content

Commit 0040265

Browse files
committed
Fix test script when not using -c option
1 parent aed4aed commit 0040265

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/test-e2e-local.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ async function testRNTestProject(circleCIArtifacts) {
188188

189189
// in local testing, 1000.0.0 mean we are on main, every other case means we are
190190
// working on a release version
191-
const buildType = baseVersion !== '1000.0.0' ? 'release' : 'dry-run';
192191
const shortCommit = exec('git rev-parse HEAD', {silent: true})
193192
.toString()
194193
.trim()
@@ -202,6 +201,7 @@ async function testRNTestProject(circleCIArtifacts) {
202201
.replace(/[T]/g, '-');
203202

204203
const releaseVersion = `1000.0.0-${shortCommit}`;
204+
const buildType = releaseVersion.startsWith('1000.0.0') ? 'dry-run' : 'release';
205205

206206
// Prepare some variables for later use
207207
const repoRoot = pwd();
@@ -212,6 +212,7 @@ async function testRNTestProject(circleCIArtifacts) {
212212
circleCIArtifacts != null
213213
? path.join(circleCIArtifacts.baseTmpPath(), 'maven-local')
214214
: '/private/tmp/maven-local';
215+
215216
const hermesPath = await prepareArtifacts(
216217
circleCIArtifacts,
217218
mavenLocalPath,

0 commit comments

Comments
 (0)