Skip to content

Commit 018194d

Browse files
committed
tools/mpremote/tests/test_powershell: PowerShell test.
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
1 parent 714c378 commit 018194d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

tools/mpremote/tests/run-mpremote-tests.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,10 @@ def main():
441441
else:
442442
tests = []
443443
elif len(args.files) == 0:
444-
test_extensions = ("test_*.sh",)
445444
if sys.platform == "nt":
446-
test_extensions += (
447-
"test_*.bat",
448-
"test_*.ps1",
449-
)
445+
test_extensions = ("test_*.ps1",)
446+
else:
447+
test_extensions = ("test_*.sh", "test_*.ps1")
450448

451449
if args.test_dirs is None:
452450
test_dirs = (".",)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/snap/bin/pwsh -File
2+
iex "$Env:MPREMOTE eval 1+1"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy