Skip to content

reprun: Recursion (do/run) commands in comments cause unnecessary recursion or failure #59

@bbdaniels

Description

@bbdaniels

Added to test file 1. For example, running:

do "target-2.do" // missing do-file do "${tf}/target-dontrun.do"

* do "${tf}/target-dontrun.do"

// do "${tf}/target-dontrun.do"

// do "${tf}/target-dontrun.do"

/*
do "${tf}/target-dontrun.do"
*/

should no nothing, but gives:

    Stepping into sub-file:
    +-> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-1.do
    +--> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-dontrun.do

    Lines where Run 1 and Run 2 mismatch for any value:
+------------------------------------------------------------------------------------------------------------
|        |      Seed RNG State      |      Sort Order RNG      |      Data Checksum       |
| Line # | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Loop iteration:
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+------------------
+------------------------------------------------------------------------------------------------------------
 
    Stepping back into file:
    +-> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-1.do

    Lines where Run 1 and Run 2 mismatch for any value:
+------------------------------------------------------------------------------------------------------------
|        |      Seed RNG State      |      Sort Order RNG      |      Data Checksum       |
| Line # | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Loop iteration:
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+------------------
+------------------------------------------------------------------------------------------------------------
 
    Stepping into sub-file:
    +-> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-1.do
    +--> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-dontrun.do

    Lines where Run 1 and Run 2 mismatch for any value:
+------------------------------------------------------------------------------------------------------------
|        |      Seed RNG State      |      Sort Order RNG      |      Data Checksum       |
| Line # | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Loop iteration:
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+------------------
+------------------------------------------------------------------------------------------------------------
 
    Stepping back into file:
    +-> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-1.do

    Lines where Run 1 and Run 2 mismatch for any value:
+------------------------------------------------------------------------------------------------------------
|        |      Seed RNG State      |      Sort Order RNG      |      Data Checksum       |
| Line # | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Loop iteration:
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+------------------
+------------------------------------------------------------------------------------------------------------
 
    Stepping into sub-file:
    +-> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-1.do
    +--> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-dontrun.do

    Lines where Run 1 and Run 2 mismatch for any value:
+------------------------------------------------------------------------------------------------------------
|        |      Seed RNG State      |      Sort Order RNG      |      Data Checksum       |
| Line # | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Loop iteration:
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+------------------
+------------------------------------------------------------------------------------------------------------
 
    Stepping back into file:
    +-> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-1.do

    Lines where Run 1 and Run 2 mismatch for any value:
+------------------------------------------------------------------------------------------------------------
|        |      Seed RNG State      |      Sort Order RNG      |      Data Checksum       |
| Line # | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Run 1  | Run 2  | Match  | Loop iteration:
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+------------------
+------------------------------------------------------------------------------------------------------------
 
    Stepping into sub-file:
    +-> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-1.do
    +--> /Users/bbdaniels/GitHub/repkit/src/tests/reprun/targets/target-2.do

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreprunRelates to reprunresolved but unpublishedSolution submitted but unreleased

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions