From da5c1b9837daf77eb8ce286413866a8f7691607fb3e5a6bf11e2ea04218c7b4d Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Sun, 10 Mar 2019 22:59:52 +0000 Subject: [PATCH] Accepting request 683632 from home:cyphar:containers:docker-test Fix find usage. OBS-URL: https://build.opensuse.org/request/show/683632 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=292 --- docker.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docker.spec b/docker.spec index b0c8228..794cb24 100644 --- a/docker.spec +++ b/docker.spec @@ -379,13 +379,12 @@ install -D -m0644 components/cli/contrib/completion/zsh/_docker "%{buildroot}%{_ # We only need all our built tests.main and hack/ for testing purposes. install -d %{buildroot}%{_prefix}/src/docker/ -pushd components/engine -cp -a integration/ integration-cli/ %{buildroot}%{_prefix}/src/docker/ -find %{buildroot}%{_prefix}/src/docker/ \ - \( -type f -not -name 'tests.main' \) -or \( -type d -empty \) -delete install -D -m0755 %{SOURCE9} %{buildroot}%{_prefix}/src/docker/tests.sh -cp -a hack/ %{buildroot}%{_prefix}/src/docker/ -popd +cp -a components/engine/{hack,integration{,-cli}}/ %{buildroot}%{_prefix}/src/docker/ +find %{buildroot}%{_prefix}/src/docker/ \ + \( -type f -name '*_test.go' \) -delete +find %{buildroot}%{_prefix}/src/docker/ \ + \( -type d -empty \) -delete # # systemd service