Disable podman test when c/r is not supported

Resolves: rhbz#2000882
Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
This commit is contained in:
Radostin Stoyanov 2021-09-06 09:45:11 +01:00
parent 457c2e1c92
commit 3446799524
No known key found for this signature in database
GPG Key ID: 21C246FD7C1157A7
2 changed files with 10 additions and 1 deletions

View File

@ -11,7 +11,7 @@
Name: criu
Version: 3.15
Release: 11%{?dist}
Release: 12%{?dist}
Provides: crtools = %{version}-%{release}
Obsoletes: crtools <= 1.0-2
Summary: Tool for Checkpoint/Restore in User-space
@ -118,6 +118,10 @@ rm -rf $RPM_BUILD_ROOT%{_libexecdir}/%{name}
%doc %{_mandir}/man1/crit.1*
%changelog
* Mon Sep 6 2021 Radostin Stoyanov <radostin@redhat.com> - 3.15-12
- Increase release number from 11 to 12
- Disable podman test when crun doesn't support checkpoint/restore
* Tue Aug 31 2021 Adrian Reber <areber@redhat.com> - 3.15-11
- Remove unnecessary Requires: criu-libs
- Remove wrong BR nftables-devel

View File

@ -4,6 +4,11 @@ set -eux
ls -la
if ! crun checkpoint --help; then
echo "crun doesn't support checkpoint/restore"
exit 0
fi
echo "Start container"
podman --log-level debug run -d quay.io/adrianreber/counter