Skip to content

Commit c6ba733

Browse files
committed
Update tester
1 parent 0d49a24 commit c6ba733

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

test-esp32.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
#!/bin/bash
22

3-
esphome -s external_components_source components ${1:-run} ${2:-esp32-example-faker.yaml}
3+
if [[ $2 == tests/* ]]; then
4+
C="../components"
5+
else
6+
C="components"
7+
fi
8+
9+
esphome -s external_components_source $C ${1:-run} ${2:-esp32-example-faker.yaml}

test-esp8266.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
#!/bin/bash
22

3-
esphome -s external_components_source components ${1:-run} ${2:-esp8266-example-faker.yaml}
3+
if [[ $2 == tests/* ]]; then
4+
C="../components"
5+
else
6+
C="components"
7+
fi
8+
9+
esphome -s external_components_source $C ${1:-run} ${2:-esp8266-example-faker.yaml}

0 commit comments

Comments
 (0)