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
This commit is contained in:
Aleksa Sarai 2019-03-10 22:59:52 +00:00 committed by Git OBS Bridge
parent 1711b55eb5
commit da5c1b9837

View File

@ -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