]> sourceware.org Git - lvm2.git/commitdiff
tests: don't change real test output
authorDavid Teigland <teigland@redhat.com>
Thu, 12 Sep 2019 19:45:13 +0000 (14:45 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 12 Sep 2019 19:45:13 +0000 (14:45 -0500)
test/lib/brick-shelltest.h

index 56429c7b08d103a8c91bc401de600b8cb7cf0f31..b58f3d6843141672b90ab426b56a7f3f72f37428 100644 (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;
     }
 };
This page took 0.035987 seconds and 5 git commands to generate.