aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-28 10:23:58 -0400
committerGitHub <noreply@github.com>2022-04-28 10:23:58 -0400
commitd0b96a541dc69e98d1923f8b297876f787bdb2db (patch)
tree77e4100a13bbb2a8f8149cee35c842a91b250c74 /test
parent2b8cafc0671fbbd155770f044b8216f050877192 (diff)
parent91ead15283200feb9db8054a26d322fbfdc3fa59 (diff)
downloadpodman-d0b96a541dc69e98d1923f8b297876f787bdb2db.tar.gz
podman-d0b96a541dc69e98d1923f8b297876f787bdb2db.tar.bz2
podman-d0b96a541dc69e98d1923f8b297876f787bdb2db.zip
Merge pull request #14051 from giuseppe/volume-create-noquota-option
volume: add new option -o o=noquota
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_podman_baseline.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/test_podman_baseline.sh b/test/test_podman_baseline.sh
index 5a420fe60..5ef2d1bda 100755
--- a/test/test_podman_baseline.sh
+++ b/test/test_podman_baseline.sh
@@ -309,6 +309,28 @@ else
echo "Overlay test within limits failed"
fi
+before=`xfs_quota -x -c 'report -N -p' $TMPDIR | grep -c ^#`
+podman $PODMANBASE volume create -o o=noquota test-no-quota
+after=`xfs_quota -x -c 'report -N -p' $TMPDIR | grep -c ^#`
+
+if [ $before != $after ];
+then
+ echo "Test -o=noquota doesn't create a projid failed"
+else
+ echo "Test -o=noquota doesn't create a projid passed"
+fi
+
+before=`xfs_quota -x -c 'report -N -p' $TMPDIR | grep -c ^#`
+podman $PODMANBASE volume create -o test-no-quota
+after=`xfs_quota -x -c 'report -N -p' $TMPDIR | grep -c ^#`
+
+if [ $before == $after ];
+then
+ echo "Test without -o=noquota creates a projid failed"
+else
+ echo "Test without -o=noquota creates a projid passed"
+fi
+
########
# Expected to fail
########