Skip to content

Commit 6259618

Browse files
committed
Fix PATH for Windows
1 parent f909097 commit 6259618

File tree

9 files changed

+24
-5
lines changed

9 files changed

+24
-5
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: 'test'
22

33
on:
44
push:
5-
paths:
6-
- 'examples/projects/**'
7-
- 'pyfpga/**'
8-
- 'tests/**'
5+
# paths:
6+
# - 'examples/projects/**'
7+
# - 'pyfpga/**'
8+
# - 'tests/**'
99

1010
jobs:
1111
test:

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
.PHONY: docs
44

5-
export PATH := $(PWD)/tests/mocks:$(PATH)
5+
ifeq ($(OS),Windows_NT)
6+
PATH_SEP := ;
7+
else
8+
PATH_SEP := :
9+
endif
10+
export PATH := $(CURDIR)/tests/mocks$(PATH_SEP)$(PATH)
611

712
all: docs lint test
813

tests/mocks/FPExpress.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0FPExpress" %*

tests/mocks/impact.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0impact" %*

tests/mocks/libero.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0libero" %*

tests/mocks/pnmainc.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0diamondc" %*

tests/mocks/quartus_pgm.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0quartus_pgm" %*

tests/mocks/quartus_sh.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0quartus_sh" %*

tests/mocks/xtclsh.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0xtclsh" %*

0 commit comments

Comments
 (0)