diff options
| author | Jon Turney <jon.turney@dronecode.org.uk> | 2025-03-21 18:10:10 +0000 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-03-21 14:44:46 -0700 |
| commit | f164ec692f3d173284d3671ecc908cf9b7b67f79 (patch) | |
| tree | ce7aa3f52aa508e13817f653b5e80fe94d8a5cb9 /unittests/baseplatformtests.py | |
| parent | 992ec923a7b81845d0c2a0fe9374fd9cf8d054fa (diff) | |
| download | meson-f164ec692f3d173284d3671ecc908cf9b7b67f79.tar.gz | |
CI: Fix filemode tests with cygwin 3.6.0
Put cygwin filemode tests back under the sourcedir
Remove inheritable permissions from the sourcedir
For :reasons:, the unit tests which check file mode were built in the
tempdir.
Instead, remove inheritable permissions from the working directory
(which the GitHub VM image has set for some reaons), since they can
interfere with getting exactly the file mode you asked for.
Partially reverts 04ae1cfb7999e25f476f84572ff0ad853629346c
Diffstat (limited to 'unittests/baseplatformtests.py')
| -rw-r--r-- | unittests/baseplatformtests.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/unittests/baseplatformtests.py b/unittests/baseplatformtests.py index 73682e03a..5fff212f1 100644 --- a/unittests/baseplatformtests.py +++ b/unittests/baseplatformtests.py @@ -125,18 +125,6 @@ class BasePlatformTests(TestCase): newdir = os.path.realpath(newdir) self.change_builddir(newdir) - def new_builddir_in_tempdir(self): - # Can't keep the builddir inside the source tree for the umask tests: - # https://github.com/mesonbuild/meson/pull/5546#issuecomment-509666523 - # And we can't do this for all tests because it causes the path to be - # a short-path which breaks other tests: - # https://github.com/mesonbuild/meson/pull/9497 - newdir = tempfile.mkdtemp() - # In case the directory is inside a symlinked directory, find the real - # path otherwise we might not find the srcdir from inside the builddir. - newdir = os.path.realpath(newdir) - self.change_builddir(newdir) - def _open_meson_log(self) -> io.TextIOWrapper: log = os.path.join(self.logdir, 'meson-log.txt') return open(log, encoding='utf-8') |
