Skip to content

Commit

Permalink
Merge branch 'v0.17.x_bugfix' into v0.17.x
Browse files Browse the repository at this point in the history
  • Loading branch information
S1artie committed Jul 4, 2018
2 parents 4a1b0f5 + dea1a2d commit 005dda1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,13 @@ protected void defineVariable(final VariableOrConstantEntity anEntity, Object an
// We need to send variable updates to forks in the main phase here.
boolean tempSendToForks = (!isFork()) && shouldExecuteFixtures();

setVariableValue(anEntity, tempInitialValue, tempSendToForks);
if (isFork() && !shouldExecuteFixtures()) {
// Skip the variable definition if we are on a fork AND the fork is not currently executing stuff
// The initial value of these variables should have already been provided by the master, re-setting
// could cause trouble, as we might literally reset the value to an old one! See issue #194.
} else {
setVariableValue(anEntity, tempInitialValue, tempSendToForks);
}

if (currentCallback != null) {
Runnable tempRunnable = new Runnable() {
Expand Down

0 comments on commit 005dda1

Please sign in to comment.