Skip to content

Commit 441adcd

Browse files
authored
PyVCP test: result file formatting fixes (#3551)
Use script mode (-s) to avoid white-space differences and strip out Note: Using POSIX.... comments to allow for running in different environments
1 parent 88ef1d5 commit 441adcd

2 files changed

Lines changed: 26 additions & 28 deletions

File tree

tests/pyvcp/expected

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
Component Pins:
2-
Owner Type Dir Value Name
3-
4 float OUT 0 mypanel.dial-a-out
4-
4 float OUT 0 mypanel.dial-b-out
5-
4 float IN 0 mypanel.dial-c-in
6-
4 float OUT 0 mypanel.dial-c-out
7-
4 float OUT 0 mypanel.dial.0.out
8-
4 float IN 0 mypanel.dial.0.param_pin
9-
4 float IN 0 mypanel.dial.1.param_pin
10-
4 float IN 0 mypanel.dial.2.param_pin
11-
4 float OUT 0 mypanel.scale-a-out-f
12-
4 s32 OUT 0 mypanel.scale-a-out-i
13-
4 float OUT 0 mypanel.scale-b-out-f
14-
4 s32 OUT 0 mypanel.scale-b-out-i
15-
4 float IN 0 mypanel.scale-c-in
16-
4 float OUT 0 mypanel.scale-c-out-f
17-
4 s32 OUT 0 mypanel.scale-c-out-i
18-
4 float OUT 0 mypanel.scale.0-f
19-
4 s32 OUT 0 mypanel.scale.0-i
20-
4 float IN 0 mypanel.scale.2.param_pin
21-
4 float OUT 0 mypanel.spinbox-a-out
22-
4 float OUT 0 mypanel.spinbox-b-out
23-
4 float IN 0 mypanel.spinbox-c-in
24-
4 float OUT 0 mypanel.spinbox-c-out
25-
4 float OUT 0 mypanel.spinbox.0
26-
4 float IN 0 mypanel.spinbox.2.param_pin
27-
1+
mypanel float OUT 0 mypanel.dial-a-out
2+
mypanel float OUT 0 mypanel.dial-b-out
3+
mypanel float IN 0 mypanel.dial-c-in
4+
mypanel float OUT 0 mypanel.dial-c-out
5+
mypanel float OUT 0 mypanel.dial.0.out
6+
mypanel float IN 0 mypanel.dial.0.param_pin
7+
mypanel float IN 0 mypanel.dial.1.param_pin
8+
mypanel float IN 0 mypanel.dial.2.param_pin
9+
mypanel float OUT 0 mypanel.scale-a-out-f
10+
mypanel s32 OUT 0 mypanel.scale-a-out-i
11+
mypanel float OUT 0 mypanel.scale-b-out-f
12+
mypanel s32 OUT 0 mypanel.scale-b-out-i
13+
mypanel float IN 0 mypanel.scale-c-in
14+
mypanel float OUT 0 mypanel.scale-c-out-f
15+
mypanel s32 OUT 0 mypanel.scale-c-out-i
16+
mypanel float OUT 0 mypanel.scale.0-f
17+
mypanel s32 OUT 0 mypanel.scale.0-i
18+
mypanel float IN 0 mypanel.scale.2.param_pin
19+
mypanel float OUT 0 mypanel.spinbox-a-out
20+
mypanel float OUT 0 mypanel.spinbox-b-out
21+
mypanel float IN 0 mypanel.spinbox-c-in
22+
mypanel float OUT 0 mypanel.spinbox-c-out
23+
mypanel float OUT 0 mypanel.spinbox.0
24+
mypanel float IN 0 mypanel.spinbox.2.param_pin

tests/pyvcp/test.sh

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

33
set -e
44

5-
xvfb-run halrun do-test.hal &
5+
xvfb-run halrun -s do-test.hal
6+
sed -i '/mypanel/!d' result
67

78
exit 0

0 commit comments

Comments
 (0)