Skip to content

Spy calls log file is not thread-unique #12

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions