diff options
-rw-r--r-- | tests/frontend/buildcheckout.py | 16 | ||||
l--------- | tests/frontend/project/files/files-and-links/basicfolder/basicsymlink | 1 |
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py index 7044739a1..5079800ab 100644 --- a/tests/frontend/buildcheckout.py +++ b/tests/frontend/buildcheckout.py @@ -526,6 +526,14 @@ def test_build_checkout_tarball_links(datafiles, cli): checkout = os.path.join(cli.directory, 'checkout.tar') extract = os.path.join(cli.directory, 'extract') + # Create the link before running the tests. + # This is needed for users working on Windows, git checks out symlinks as files which content is the name + # of the symlink and the test therefore doesn't have the correct content + os.symlink( + os.path.join("..", "basicfile"), + os.path.join(project, "files", "files-and-links", "basicfolder", "basicsymlink") + ) + result = cli.run(project=project, args=['build', 'import-links.bst']) result.assert_success() @@ -548,6 +556,14 @@ def test_build_checkout_links(datafiles, cli): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') + # Create the link before running the tests. + # This is needed for users working on Windows, git checks out symlinks as files which content is the name + # of the symlink and the test therefore doesn't have the correct content + os.symlink( + os.path.join("..", "basicfile"), + os.path.join(project, "files", "files-and-links", "basicfolder", "basicsymlink") + ) + result = cli.run(project=project, args=['build', 'import-links.bst']) result.assert_success() diff --git a/tests/frontend/project/files/files-and-links/basicfolder/basicsymlink b/tests/frontend/project/files/files-and-links/basicfolder/basicsymlink deleted file mode 120000 index e2b4f7423..000000000 --- a/tests/frontend/project/files/files-and-links/basicfolder/basicsymlink +++ /dev/null @@ -1 +0,0 @@ -../basicfile
\ No newline at end of file |