Skip to content

Commit

Permalink
Merge pull request #4542 from mwichmann/scons-time
Browse files Browse the repository at this point in the history
Fix two scons-time tests on GH Windows runner
  • Loading branch information
bdbaddog authored May 27, 2024
2 parents 9f75371 + 44bd8b4 commit 1f68fad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
tweaked the Util package doc build so it's structured more like the
other packages (a missed part of the transition when it was split).
- Updated manpage description of Command "builder" and function.
- Framework for scons-time tests adjusted so a path with a long username
Windows has squashed doesn't get re-expanded. Fixes a problem seen
on GitHub Windows runner which uses a name "runneradmin".


RELEASE 4.7.0 - Sun, 17 Mar 2024 17:22:20 -0700
Expand Down
7 changes: 6 additions & 1 deletion testing/framework/TestSCons_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

from TestCommon import *
from TestCommon import __all__
from TestCmd import IS_WINDOWS
# some of the scons_time tests may need regex-based matching:
from TestSCons import search_re, search_re_in_list

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

args = (tempdir, 'scons-time-',) + args
x = os.path.join(*args)
Expand Down
2 changes: 0 additions & 2 deletions windows_ci_skip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ test/packaging/msi/package.py
test/packaging/tar/xz_packaging.py
test/scons-time/run/config/python.py
test/scons-time/run/option/python.py
test/scons-time/run/option/quiet.py
test/scons-time/run/option/verbose.py
test/sconsign/script/no-SConsignFile.py
test/sconsign/script/SConsignFile.py
test/sconsign/script/Signatures.py
Expand Down

0 comments on commit 1f68fad

Please sign in to comment.