Skip to content

Commit f713b01

Browse files
committed
test(ci): deterministic jq
Making jq verbose so we see what failed + using updated version for sharness.
1 parent 6d295eb commit f713b01

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.circleci/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ default_environment: &default_environment
3030
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
3131
GIT_PAGER: cat
3232

33+
orbs:
34+
jq: circleci/jq@2.2.0
35+
3336
executors:
3437
golang:
3538
docker:
@@ -131,6 +134,11 @@ jobs:
131134
steps:
132135
- run: sudo apt update
133136
- run: sudo apt install socat net-tools
137+
- run: sudo apt --purge remove jq
138+
- jq/install:
139+
version: jq-1.6
140+
install-dir: /usr/local/bin
141+
override: true
134142
- checkout
135143

136144
- run:

test/sharness/t0021-config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ test_config_cmd() {
129129
# Dynamic keys with dot in their names
130130
test_config_cmd_set "--json" "Gateway.PublicGateways[\"some.example.com\"].UseSubdomains" "true"
131131
test_expect_success "'ipfs config show' after Foo[\"bar.buzz\"] returns a valid JSON" '
132-
ipfs config show | jq -e > /dev/null 2>&1
132+
ipfs config show | jq -e
133133
'
134+
# TODO: ipfs config show | jq -e > /dev/null 2>&1
134135
test_expect_success "'ipfs config' after Foo[\"bar.buzz\"] shows updated value" '
135136
ipfs config Gateway.PublicGateways[\"some.example.com\"].UseSubdomains > bool_out &&
136137
grep true bool_out

0 commit comments

Comments
 (0)