-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tests/lib/prepare-restore: install gojq v0.12.16 Install gojq in prepare. Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/aux-info: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/store-state: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/lib/tools/store-state: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/snap-quota-memory: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/snapshot-exclusions-dynamic: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/system-usernames-snap-scoped: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/appstream-id: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/auto-refresh-gating: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/lib/nested: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/auto-refresh: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/upgrade/basic: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/core/snap-repair: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/auto-refresh-private: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/auto-refresh-pre-download: drop jq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/api-get-systems-label: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/theme-install: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/snapctl-from-snap: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/uc20-create-partitions: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/unhandled-task: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/uc20-create-partitions-encrypt: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * ftests/main/set-proxy-store: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/nested/manual/split-refresh: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/nested/manual/core20-create-recovery: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/interfaces-snap-refresh-observe: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/lib/tools/snapd-state: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/lib/prepare.sh: drop jq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/cgroup-devices-v2: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/interfaces-snap-interfaces-requests-control: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/auto-refresh-backoff: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/apparmor-prompting-snapd-startup: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/interfaces-hooks: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/core/auto-refresh-backoff-after-reboot: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/core/uc20-recovery: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/core/snapd-refresh-vs-services: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/apparmor-prompting-flag-restart: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/quota-groups-systemd-accounting: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/snapd-reexec: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/snap-get: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/snap-disconnect: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/auto-refresh-gating-from-snap: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/cloud-init: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/core/snapd-maintenance-msg: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/nested/manual/core20-validation-sets: drop jq Signed-off-by: Maciej Borzecki <[email protected]> * tests/nested/manual/core20-install-device-file-install-via-hook-hack: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/nested/manual/core20-install-device-file-install-ubuntu-save-via-hook: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * tests/lib/prepare-restore: build goqj statically, make it available under tests/bin Since gojq may be running on a different system, make sure to build it statically. Also place the binary under $PROJECT_PATH/tests/bin which is automaticall added to $PATH. Signed-off-by: Maciej Borzecki <[email protected]> * tests/main/store-state: reach out to real store before proceeding Signed-off-by: Maciej Borzecki <[email protected]> * fixup! tests/core/auto-refresh-backoff-after-reboot: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * fixup! tests/nested/manual/core20-install-device-file-install-via-hook-hack: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * fixup! tests/nested/manual/core20-install-device-file-install-ubuntu-save-via-hook: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * fixup! tests/nested/manual/core20-install-device-file-install-via-hook-hack: use gojq Signed-off-by: Maciej Borzecki <[email protected]> * fixup! tests/nested/manual/core20-install-device-file-install-ubuntu-save-via-hook: use gojq Signed-off-by: Maciej Borzecki <[email protected]> --------- Signed-off-by: Maciej Borzecki <[email protected]>
- Loading branch information
Showing
48 changed files
with
370 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -608,6 +608,15 @@ prepare_project() { | |
disable_journald_rate_limiting | ||
disable_journald_start_limiting | ||
fi | ||
|
||
# native jq replacement, but still with some incompatibilies, see | ||
# https://github.com/itchyny/gojq | ||
# major differences: | ||
# - map keys are sorted by default | ||
# - with --yaml-input, can parse YAML | ||
GOBIN=$PROJECT_PATH/tests/bin \ | ||
CGO_ENABLED=0 \ | ||
go install github.com/itchyny/gojq/cmd/[email protected] | ||
} | ||
|
||
prepare_project_each() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.