* [PATCH] xm-test: don't export RD_PATH into TENV
@ 2006-11-01 22:59 Ryan Harper
2006-11-02 23:06 ` Ewan Mellor
0 siblings, 1 reply; 2+ messages in thread
From: Ryan Harper @ 2006-11-01 22:59 UTC (permalink / raw)
To: xen-devel
xm-test currently exports the RD_PATH value into the environment which
prevents one from providing the value when running a test. Without this
patch, one has to re-run ./autogen && ./configure with RD_PATH defined
to change the RD_PATH value that is used.
Additionally, the current getRdPath() implementation already uses the
the value that was being exported. In short, exporting the value is not
needed unless one wants to override the default value.
With the patch, the following now works:
% cp xm-test/ramdisk/initrd.img /boot
% cd xm-test/tests/create
% RD_PATH=/boot TEST_VERBOSE=1 make TESTS=01_create_basic_pos.test check
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
ryanh@us.ibm.com
diffstat output:
configure.ac | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
---
fix xm-test configure.ac to not define RD_PATH which prevented env override
diff -r 2db4388fecb9 tools/xm-test/configure.ac
--- a/tools/xm-test/configure.ac Tue Oct 31 16:42:46 2006 +0000
+++ b/tools/xm-test/configure.ac Tue Oct 31 15:43:13 2006 -0600
@@ -11,11 +11,10 @@ AC_PROG_CC
#AC_PROG_INSTALL
AC_CHECK_PROG([LILO], lilo, lilo, "no", [$PATH])
-# Right now, we can assume that the lib/ and ramdisk/ directories
-# are two levels above the tests
+# Right now, we can assume that the lib/ directory
+# is two levels above the tests
TESTLIB=../../lib
-RD_PATH=../../ramdisk
-TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB RD_PATH=$RD_PATH"
+TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB"
AC_ARG_ENABLE(hvm-support,
[[ --enable-hvm-support enable hardware virtual machine assist]],
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] xm-test: don't export RD_PATH into TENV
2006-11-01 22:59 [PATCH] xm-test: don't export RD_PATH into TENV Ryan Harper
@ 2006-11-02 23:06 ` Ewan Mellor
0 siblings, 0 replies; 2+ messages in thread
From: Ewan Mellor @ 2006-11-02 23:06 UTC (permalink / raw)
To: Ryan Harper; +Cc: xen-devel
On Wed, Nov 01, 2006 at 04:59:49PM -0600, Ryan Harper wrote:
> xm-test currently exports the RD_PATH value into the environment which
> prevents one from providing the value when running a test. Without this
> patch, one has to re-run ./autogen && ./configure with RD_PATH defined
> to change the RD_PATH value that is used.
>
> Additionally, the current getRdPath() implementation already uses the
> the value that was being exported. In short, exporting the value is not
> needed unless one wants to override the default value.
>
> With the patch, the following now works:
>
> % cp xm-test/ramdisk/initrd.img /boot
> % cd xm-test/tests/create
> % RD_PATH=/boot TEST_VERBOSE=1 make TESTS=01_create_basic_pos.test check
Applied, thanks Ryan.
Ewan.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-02 23:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-01 22:59 [PATCH] xm-test: don't export RD_PATH into TENV Ryan Harper
2006-11-02 23:06 ` Ewan Mellor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.