Skip to content

Commit 8eb4f00

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

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
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:
@@ -130,7 +133,8 @@ jobs:
130133
TEST_VERBOSE: 1
131134
steps:
132135
- run: sudo apt update
133-
- run: sudo apt install socat net-tools
136+
- run: sudo apt install socat net-tools && sudo apt --purge remove jq
137+
- jq/install
134138
- checkout
135139

136140
- 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)