16881f68fSopenharmony_ci#!/bin/bash 26881f68fSopenharmony_ci 36881f68fSopenharmony_ciulimit -n 1048576 46881f68fSopenharmony_ci 56881f68fSopenharmony_ci# It would be easier if we could just set SCRATCH_DEV and TEST_DEV to the source directory 66881f68fSopenharmony_ci# path in local.options. Unfortunately, setting these variables to a path seems get 76881f68fSopenharmony_ci# xfstests all worked up (even though it should treat these as opaque values), and it 86881f68fSopenharmony_ci# refuses to even start running any tests). 96881f68fSopenharmony_cidev="$1" 106881f68fSopenharmony_cishift 116881f68fSopenharmony_ciif [ "$dev" = "${SCRATCH_DEV}" ]; then 126881f68fSopenharmony_ci source="${SCRATCH_SOURCE}" 136881f68fSopenharmony_cielse 146881f68fSopenharmony_ci source="${TEST_SOURCE}" 156881f68fSopenharmony_cifi 166881f68fSopenharmony_ci 176881f68fSopenharmony_ciexec "$PASSTHROUGH_PATH" -o fsname=$dev,allow_other "${source}" "$@" 18