Skip to content

'EXDEV: cross-device link not permitted' error in docker #1

Description

@serjGavaleshko

Hi!
There is issue when run tests in docker:
fs.renameSync(); (480 line) throws an exception:
Error: EXDEV: cross-device link not permitted, rename '/codecept/output/~60mi4.temp' -> '/codecept/tests/output/debug.png' at Object.renameSync (node:fs:993:3) at PixelmatchHelper._takeScreenshot (node_modules/codeceptjs-pixelmatchhelper/index.js:479:6) at async PixelmatchHelper._maybeCaptureImage (node_modules/codeceptjs-pixelmatchhelper/index.js:639:3) at async PixelmatchHelper.getVisualDifferences (node_modules/codeceptjs-pixelmatchhelper/index.js:280:3) at async /codecept/node_modules/codeceptjs-pixelmatchhelper/index.js:241:5
It could be fixed by changing method to fs.copyFileSync();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions