Skip to content

Commit 1f68fad

Browse files
authored
Merge pull request SCons#4542 from mwichmann/scons-time
Fix two scons-time tests on GH Windows runner
2 parents 9f75371 + 44bd8b4 commit 1f68fad

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
7171
tweaked the Util package doc build so it's structured more like the
7272
other packages (a missed part of the transition when it was split).
7373
- Updated manpage description of Command "builder" and function.
74+
- Framework for scons-time tests adjusted so a path with a long username
75+
Windows has squashed doesn't get re-expanded. Fixes a problem seen
76+
on GitHub Windows runner which uses a name "runneradmin".
7477

7578

7679
RELEASE 4.7.0 - Sun, 17 Mar 2024 17:22:20 -0700

testing/framework/TestSCons_time.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
from TestCommon import *
4242
from TestCommon import __all__
43+
from TestCmd import IS_WINDOWS
4344
# some of the scons_time tests may need regex-based matching:
4445
from TestSCons import search_re, search_re_in_list
4546

@@ -236,7 +237,11 @@ def tempdir_re(self, *args):
236237
except AttributeError:
237238
pass
238239
else:
239-
tempdir = realpath(tempdir)
240+
# Don't realpath on Windows, tempdir could contain 8+3 path
241+
# E.g. username on GitHub runner is "runneradmin" -> "RUNNER~1"
242+
# We don't want to convert that back!
243+
if not IS_WINDOWS:
244+
tempdir = realpath(tempdir)
240245

241246
args = (tempdir, 'scons-time-',) + args
242247
x = os.path.join(*args)

windows_ci_skip.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ test/packaging/msi/package.py
3333
test/packaging/tar/xz_packaging.py
3434
test/scons-time/run/config/python.py
3535
test/scons-time/run/option/python.py
36-
test/scons-time/run/option/quiet.py
37-
test/scons-time/run/option/verbose.py
3836
test/sconsign/script/no-SConsignFile.py
3937
test/sconsign/script/SConsignFile.py
4038
test/sconsign/script/Signatures.py

0 commit comments

Comments
 (0)