1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-09-09 17:44:26 +03:00

tests: don't change real test output

This commit is contained in:
David Teigland
2019-09-12 14:45:13 -05:00
parent 196a9ed59f
commit df36a8eadf

View File

@@ -376,20 +376,6 @@ struct Substitute {
std::string prefix;
std::string map( std::string line ) {
if ( std::string( line, 0, 9 ) == "@TESTDIR=" )
testdir = std::string( line, 9, line.length() - 10 ); // skip \n
else if ( std::string( line, 0, 8 ) == "@PREFIX=" )
prefix = std::string( line, 8, line.length() - 9 ); // skip \n
else {
size_t off;
if (!testdir.empty())
while ( (off = line.find( testdir )) != std::string::npos )
line.replace( off, testdir.length(), "@TESTDIR@" );
if (!prefix.empty())
while ( (off = line.find( prefix )) != std::string::npos )
line.replace( off, prefix.length(), "@PREFIX@" );
}
return line;
}
};