Skip to content

Commit a198818

Browse files
committed
Workaround for btt not including the time field
It is required for Codecov.io
1 parent e25d435 commit a198818

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

client/tests/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ all: $(RESULTS)
1313
.PHONY: all
1414

1515
coap_results.md : coap_client_tests.md $(PROGRAM)
16-
bbt --verbose --junit coap_results.xml $< > $@
16+
bbt --verbose --junit coap_results.xml $< > $@
17+
sed -i 's%/>$$%/ time="1.0">%g' coap_results.xml
1718
grep -F 'Summary : **Success**' $@
1819

1920
coaps_results.md: coaps_client_tests.md $(PROGRAM)
2021
coap-server-openssl -k COAP_SPARK_KEY_5684 -u coap_spark -d 100 &
2122
bbt --verbose --junit coaps_results.xml $< > $@
23+
sed -i 's%/>$$%/ time="1.0">%g' coaps_results.xml
2224
grep -F 'Summary : **Success**' $@
2325
pkill -f coap-server-openssl
2426

server/tests/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ coap_results.md : coap_server_tests.md $(PROGRAM)
2828
SERVER_PID=$$!; \
2929
trap 'sleep 2; kill $$SERVER_PID >/dev/null 2>&1 || true' EXIT; \
3030
bbt --keep-going --verbose --junit coap_results.xml $< > $@; \
31+
sed -i 's%/>$$%/ time="1.0">%g' coap_results.xml; \
3132
grep -F 'Summary : **Success**' $@; \
3233
coap_client -m fetch coap://localhost/
3334

@@ -37,6 +38,7 @@ coaps_results.md: coaps_server_tests.md $(PROGRAM)
3738
SERVER_PID=$$!; \
3839
trap 'sleep 2; kill $$SERVER_PID >/dev/null 2>&1 || true' EXIT; \
3940
bbt --keep-going --verbose --junit coaps_results.xml $< > $@; \
41+
sed -i 's%/>$$%/ time="1.0">%g' coaps_results.xml; \
4042
grep -F 'Summary : **Success**' $@; \
4143
coap_client -m fetch $(SECURE_ARGS) coaps://localhost/
4244

0 commit comments

Comments
 (0)