few fixes to rust rustdoc-gui tests on windows
This commit is contained in:
parent
fd0a3313f7
commit
af36fbfc33
2 changed files with 8 additions and 1 deletions
|
@ -250,6 +250,13 @@ changelog-seen = 2
|
||||||
# target when running tests, otherwise this can be omitted.
|
# target when running tests, otherwise this can be omitted.
|
||||||
#nodejs = "node"
|
#nodejs = "node"
|
||||||
|
|
||||||
|
# The npm executable to use. Note that this is used for rustdoc-gui tests,
|
||||||
|
# otherwise this can be omitted.
|
||||||
|
#
|
||||||
|
# Under Windows this should be `npm.cmd` or path to it (verified on nodejs v18.06), or
|
||||||
|
# error will be emitted.
|
||||||
|
#npm = "npm"
|
||||||
|
|
||||||
# Python interpreter to use for various tasks throughout the build, notably
|
# Python interpreter to use for various tasks throughout the build, notably
|
||||||
# rustdoc tests, the lldb python interpreter, and some dist bits and pieces.
|
# rustdoc tests, the lldb python interpreter, and some dist bits and pieces.
|
||||||
#
|
#
|
||||||
|
|
|
@ -20,7 +20,7 @@ fn get_browser_ui_test_version_inner(npm: &Path, global: bool) -> Option<String>
|
||||||
.unwrap_or(String::new());
|
.unwrap_or(String::new());
|
||||||
lines
|
lines
|
||||||
.lines()
|
.lines()
|
||||||
.find_map(|l| l.split(':').nth(1)?.strip_prefix("browser-ui-test@"))
|
.find_map(|l| l.rsplit(':').next()?.strip_prefix("browser-ui-test@"))
|
||||||
.map(|v| v.to_owned())
|
.map(|v| v.to_owned())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue