From bb474bb3b7bbf4c3fa3f1ca7deeffb3667b9c06f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 12 Mar 2012 09:48:51 -0700 Subject: [PATCH] tests: Fix "make check" as non-root. 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 --- tests/ovs-monitor-ipsec.at | 1 + tests/ovs-xapi-sync.at | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/ovs-monitor-ipsec.at b/tests/ovs-monitor-ipsec.at index ab14462c..c8de1dec 100644 --- a/tests/ovs-monitor-ipsec.at +++ b/tests/ovs-monitor-ipsec.at @@ -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" . diff --git a/tests/ovs-xapi-sync.at b/tests/ovs-xapi-sync.at index 1f0f766c..d1c091a3 100644 --- a/tests/ovs-xapi-sync.at +++ b/tests/ovs-xapi-sync.at @@ -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" . -- 2.30.2