1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: drop RUN... already have this var elsewhere

This commit is contained in:
Zdenek Kabelac 2013-12-04 21:37:33 +01:00
parent d9461ae89b
commit 76ca82df82
2 changed files with 1 additions and 4 deletions

View File

@ -98,13 +98,11 @@ static int outline(FILE *out, char *buf, int start, int force) {
subst[0].key = "@TESTDIR@";
free(subst[0].value);
subst[0].value = strndup(from + 9, next - from - 9 - 1);
snprintf(testdirdebug, sizeof(testdirdebug), "%s/debug.log", subst[0].value);
} else if (!strncmp(from, "@PREFIX=", 8)) {
subst[1].key = "@PREFIX@";
free(subst[1].value);
subst[1].value = strndup(from + 8, next - from - 8 - 1);
} else if (!testdirdebug[0] && !strncmp(from, "RUNTESTDIR=", 11)) {
from[strlen(from) - 1] = '\0'; /* Cut \n */
snprintf(testdirdebug, sizeof(testdirdebug), "%s/debug.log", from + 11);
} else {
char *line = strndup(from, next - from);
char *a = line, *b;

View File

@ -39,7 +39,6 @@ test -n "$BASH" && trap 'set +vx; STACKTRACE; set -vx' ERR
trap 'aux teardown' EXIT # don't forget to clean up
cd "$TESTDIR"
echo "RUNTESTDIR=$TESTDIR"
if test -n "$LVM_TEST_FLAVOUR"; then
touch flavour_overrides