Skip to content

Commit

Permalink
Fix test script when not using -c option
Browse files Browse the repository at this point in the history
  • Loading branch information
cipolleschi committed Oct 31, 2023
1 parent aed4aed commit 0040265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/test-e2e-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ async function testRNTestProject(circleCIArtifacts) {

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

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

// Prepare some variables for later use
const repoRoot = pwd();
Expand All @@ -212,6 +212,7 @@ async function testRNTestProject(circleCIArtifacts) {
circleCIArtifacts != null
? path.join(circleCIArtifacts.baseTmpPath(), 'maven-local')
: '/private/tmp/maven-local';

const hermesPath = await prepareArtifacts(
circleCIArtifacts,
mavenLocalPath,
Expand Down

0 comments on commit 0040265

Please sign in to comment.