Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2017 23:53:40 +0000 (UTC)
From:      Phil Shafer <phil@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320521 - head/lib/libxo/tests
Message-ID:  <201706302353.v5UNreVP090805@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: phil
Date: Fri Jun 30 23:53:40 2017
New Revision: 320521
URL: https://svnweb.freebsd.org/changeset/base/320521

Log:
  Fix functional_test.sh to use --libxo options instead of the deprecated
  LIBXO_OPTIONS environment variable.
  
  Submitted by:	phil

Modified:
  head/lib/libxo/tests/functional_test.sh

Modified: head/lib/libxo/tests/functional_test.sh
==============================================================================
--- head/lib/libxo/tests/functional_test.sh	Fri Jun 30 22:19:18 2017	(r320520)
+++ head/lib/libxo/tests/functional_test.sh	Fri Jun 30 23:53:40 2017	(r320521)
@@ -39,14 +39,14 @@ check()
 	[ -s "${out_file}" ] && out_flag="-o file:${out_file}"
 
 	if [ "$xo_fmt" = "E" ]; then
-		LIBXO_OPTIONS="warn,encoder=test"
+		libxo_options=" warn,encoder=test"
 	else
-		LIBXO_OPTIONS=":W${xo_fmt}"
+		libxo_options=":W${xo_fmt}"
 	fi
 
 	atf_check -s exit:0 -e file:${err_file} -o file:${out_file} \
 	    env LC_ALL=en_US.UTF-8 \
-	        LIBXO_OPTIONS="${LIBXO_OPTIONS}" TZ="EST" "${SRCDIR}/${tc}" \
+	        TZ="EST" "${SRCDIR}/${tc}" --libxo${libxo_options}\
 
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706302353.v5UNreVP090805>