diff options
author | Andreas Jaeger <aj@suse.com> | 2017-12-17 19:46:52 +0100 |
---|---|---|
committer | Andreas Jaeger <aj@suse.com> | 2017-12-19 12:05:08 +0100 |
commit | dc1c55c9a07c03fe85f4bcc52419a42d75ae30fa (patch) | |
tree | 707b52fdc979fa920b174e0c8ea799e80500bf22 /tools/test-setup.sh | |
parent | d4e62830c93fd614db79b109ed611de3c665124a (diff) | |
download | swift-dc1c55c9a07c03fe85f4bcc52419a42d75ae30fa.tar.gz |
Native Zuul v3 tox jobs
Convert the legacy tox jobs to Zuul v3 native and use the
tools/test_setup.sh script to setup a XFS file like it's done in the
legacy job.
Needed-By: Id2b5cff998ac3a825a8f515c7bae3b433f30d272
Change-Id: I34ed9e1c4b822f700e42fb07937df7be72cbaf4e
Diffstat (limited to 'tools/test-setup.sh')
-rwxr-xr-x | tools/test-setup.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/test-setup.sh b/tools/test-setup.sh new file mode 100755 index 000000000..e8f2e944c --- /dev/null +++ b/tools/test-setup.sh @@ -0,0 +1,14 @@ +#!/bin/bash -xe + +# Set up a partition formatted with XFS to use as TMPDIR for our tests. +# OpenStack CI will invoke this script as part of tox based tests. +# The file .zuul.yaml set TMPDIR to $HOME/xfstmp. + +# Create a large-ish file that we will mount as a loopback +truncate -s 1GB $HOME/1G_xfs_file +# Format the new file as XFS. +/sbin/mkfs.xfs $HOME/1G_xfs_file +# loopback mount the file +mkdir -p $HOME/xfstmp +sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp +sudo chmod 777 $HOME/xfstmp |