diff mbox series

[1/4] check: Export CHECK_OPTIONS and PLATFORM for Xunit Reporting

Message ID 20220208215232.491780-2-anna@kernel.org (mailing list archive)
State New, archived
Headers show
Series Improvements for NFS | expand

Commit Message

Anna Schumaker Feb. 8, 2022, 9:52 p.m. UTC
From: Anna Schumaker <Anna.Schumaker@Netapp.com>

I found that running ./check by hand with Xunit reporting enabled caused
the PLATFORM variable to be unset, and the CHECK_OPTIONS was the default
"-g auto" instead of the "-g quick" that I also passed in. This patch
sets both variables so Xunit reporting is accurate.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
---
Maybe there is a better way to do this? If so please let me know!
---
 check | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/check b/check
index a08631213cbb..c8a38345123a 100755
--- a/check
+++ b/check
@@ -273,6 +273,7 @@  _prepare_test_list()
 }
 
 # Process command arguments first.
+export CHECK_OPTIONS="$*"
 while [ $# -gt 0 ]; do
 	case "$1" in
 	-\? | -h | --help) usage ;;
@@ -360,6 +361,7 @@  if ! . ./common/rc; then
 	echo "check: failed to source common/rc"
 	exit 1
 fi
+export PLATFORM=$(_full_platform_details)
 
 if [ -n "$subdir_xfile" ]; then
 	for d in $SRC_GROUPS $FSTYP; do