tests: Fix "make check" as non-root.
authorBen Pfaff <blp@nicira.com>
Mon, 12 Mar 2012 16:48:51 +0000 (09:48 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 12 Mar 2012 16:48:51 +0000 (09:48 -0700)
Without this change, these tests try to write to /var/run, which fails
unless "make check" is run as root.

Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/ovs-monitor-ipsec.at
tests/ovs-xapi-sync.at

index ab14462c6f57e8468e155590db5659dd535db6f1..c8de1decd7d82cecb098a6c9ad522491f8e9c6ae 100644 (file)
@@ -3,6 +3,7 @@ AT_BANNER([ovs-monitor-ipsec])
 AT_SETUP([ovs-monitor-ipsec])
 AT_SKIP_IF([test $HAVE_PYTHON = no])
 
+OVS_RUNDIR=`pwd`; export OVS_RUNDIR
 OVS_PKGDATADIR=`pwd`; export OVS_PKGDATADIR
 cp "$top_srcdir/vswitchd/vswitch.ovsschema" .
 
index 1f0f766c713502578aedde71621944e93677679c..d1c091a354496a25c1b21291a4b51c6c7356999a 100644 (file)
@@ -8,6 +8,7 @@ cp "$top_srcdir/tests/MockXenAPI.py" XenAPI.py
 PYTHONPATH=`pwd`:$PYTHONPATH
 export PYTHONPATH
 
+OVS_RUNDIR=`pwd`; export OVS_RUNDIR
 OVS_PKGDATADIR=`pwd`; export OVS_PKGDATADIR
 cp "$top_srcdir/vswitchd/vswitch.ovsschema" .