diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-02-29 17:32:02 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-02-29 19:35:48 +0000 |
commit | 0821b182c5ecc4c1090902061673f881318c93bc (patch) | |
tree | dcd817a04ce1d46ed66065643a9f9fa488ca5446 | |
parent | 42fbf9299a01c68558302abc354d931675c98ebb (diff) | |
download | meson-0821b182c5ecc4c1090902061673f881318c93bc.zip meson-0821b182c5ecc4c1090902061673f881318c93bc.tar.gz meson-0821b182c5ecc4c1090902061673f881318c93bc.tar.bz2 |
Fix re-building test '127 custom target directory install' with VS backend
Running the build step of test '127 custom target directory install'
again, using the VS backend, causes 'docgen.py' to try to create the
target directory again (which fails with a FileNotFound exception).
I'm guessing that perhaps this is a shortcoming of the VS backend that
it doesn't correctly give this target a dependency on the directory.
I'm not sure that this test is actually valid meson: the reference
manual says custom_target(output:) should be a list of files, and not a
directory, as is this case here.
-rw-r--r-- | test cases/common/127 custom target directory install/docgen.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test cases/common/127 custom target directory install/docgen.py b/test cases/common/127 custom target directory install/docgen.py index 245f370..97a3f90 100644 --- a/test cases/common/127 custom target directory install/docgen.py +++ b/test cases/common/127 custom target directory install/docgen.py @@ -5,7 +5,10 @@ import sys out = sys.argv[1] -os.mkdir(out) +try: + os.mkdir(out) +except FileExistsError: + pass for name in ('a', 'b', 'c'): with open(os.path.join(out, name + '.html'), 'w') as f: |