moby/integration-cli
Tibor Vass 9266ff7893
waitAndAssert -> poll.WaitOn
go get -d golang.org/x/tools/cmd/eg && \
dir=$(go env GOPATH)/src/golang.org/x/tools && \
git -C "$dir" fetch https://github.com/tiborvass/tools handle-variadic && \
git -C "$dir" checkout 61a94b82347c29b3289e83190aa3dda74d47abbb && \
go install golang.org/x/tools/cmd/eg

eg -w -t template.waitAndAssert.go ./integration-cli 2>&1 \
| awk '{print $2}' | while read file; do
	# removing vendor/ in import paths
	# not sure why eg adds them
	sed -E -i 's#^([\t]+").*/vendor/([^"]+)#\1\2#g' "$file"
	sed -E -i 's#\.\(eg_compareFunc\)##g' "$file"
	goimports -w "$file"
done

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit ac2f24e72a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-09-26 23:52:38 +02:00
..
checker prepare for eg on waitAndAssert 2019-09-26 23:52:37 +02:00
cli prepare for rm-gocheck script 2019-09-26 23:52:12 +02:00
daemon rm-gocheck: fix compile errors from converting check.CommentInterface to string 2019-09-26 23:52:36 +02:00
environment Various code-cleanup 2018-05-23 17:50:54 +02:00
fixtures Clean some integration-cli/fixtures package/files 2018-04-16 10:48:58 +02:00
requirement prepare for rm-gocheck script 2019-09-26 23:52:12 +02:00
testdata Clean some integration-cli/fixtures package/files 2018-04-16 10:48:58 +02:00
benchmark_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
check_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
daemon_swarm_hack_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_attach_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_build_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_build_windows_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_containers_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_api_containers_windows_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_exec_resize_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_exec_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_api_images_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_inspect_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_logs_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_network_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_stats_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_api_swarm_node_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_api_swarm_service_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_api_swarm_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_api_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_attach_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_attach_unix_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_build_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_build_unix_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_by_digest_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_commit_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_cp_from_container_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_cp_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_cp_to_container_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_cp_to_container_unix_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_cp_utils_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_create_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_daemon_plugins_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_daemon_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_cli_events_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_events_unix_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_exec_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_exec_unix_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_external_volume_driver_unix_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_health_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_history_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_images_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_import_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_info_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_info_unix_test.go rm-gocheck: Contains -> strings.Contains 2019-09-26 23:52:31 +02:00
docker_cli_inspect_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_links_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_login_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_logout_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_logs_bench_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_logs_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_netmode_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_network_unix_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_plugins_logdriver_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_plugins_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_port_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_proxy_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_prune_unix_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_cli_ps_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_pull_local_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_pull_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_push_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_registry_user_agent_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_restart_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_cli_rmi_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_run_test.go fix remaining compile issues 2019-09-26 23:52:36 +02:00
docker_cli_run_unix_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_save_load_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_save_load_unix_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_search_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_service_create_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_cli_service_health_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_cli_service_logs_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_cli_service_scale_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_sni_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_start_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_stats_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_swarm_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_cli_swarm_unix_test.go waitAndAssert -> poll.WaitOn 2019-09-26 23:52:38 +02:00
docker_cli_top_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_update_unix_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_userns_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_cli_v2_only_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_cli_volume_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_deprecated_api_v124_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_deprecated_api_v124_unix_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
docker_hub_pull_suite_test.go rm-gocheck: goimports 2019-09-26 23:52:35 +02:00
docker_utils_test.go prepare for eg on waitAndAssert 2019-09-26 23:52:37 +02:00
events_utils_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
fixtures_linux_daemon_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00
requirements_test.go prepare for rm-gocheck script 2019-09-26 23:52:12 +02:00
requirements_unix_test.go integration-cli: remove unused requirements utils 2019-09-25 17:25:53 +02:00
test_vars_noseccomp_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_seccomp_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
test_vars_unix_test.go integration-cli: remove defaultSleepImage constant 2019-09-25 17:25:20 +02:00
test_vars_windows_test.go integration-cli: remove defaultSleepImage constant 2019-09-25 17:25:20 +02:00
utils_test.go rm-gocheck: run goimports to compile successfully 2019-09-26 23:52:28 +02:00