Skip to content

Spy calls log file is not thread-unique #12

@damienflament

Description

@damienflament

The file containing spy logs is unique for each example but not for each thread.

So, running Shellspec with multiple jobs (--jobs option with value superior to 1) cause some expectations to occurs on Spy logs from other thread.

FIXTURES_BASE=$SHELLSPEC_TMPBASE/fixtures
mkdir "$FIXTURES_BASE" # FIXME This is not thread-safe !

export SPY_CALLS_FILE="$SPY_DIR/$SHELLSPEC_EXAMPLE_ID.log"

Investigating on a Shellspec job identifier provided by an environment variable is required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions