Skip to content

Commit ac7fbf1

Browse files
committed
tools/mpremote/tests/test_powershell: PowerShell test.
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
1 parent 78e0606 commit ac7fbf1

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/powershell
2+
iex "/usr/bin/python $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)