[llvm-commits] [LNT] r168616 - /lnt/trunk/lnt/tests/compile.py

Michael Gottesman mgottesman at apple.com
Mon Nov 26 13:53:07 PST 2012


Author: mgottesman
Date: Mon Nov 26 15:53:07 2012
New Revision: 168616

URL: http://llvm.org/viewvc/llvm-project?rev=168616&view=rev
Log:
[lnt compile tests] Change patching feature to support multiple patches.

Now instead of just providing one file in the config file via,
{
  ...
  "patch_file": "patch_path"
  ...
}

one can provide multiple patch files which will be applied in their listed
order,
{
  ...
  "patch_files": [
    "patch_path_1",
    "patch_path_2",
    ...
    "patch_path_n"
  ]
  ...
}

Modified:
    lnt/trunk/lnt/tests/compile.py

Modified: lnt/trunk/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/compile.py?rev=168616&r1=168615&r2=168616&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Mon Nov 26 15:53:07 2012
@@ -295,8 +295,8 @@
             fatal
 
         # Apply the patch file, if necessary.
-        patch_file = project.get('patch_file')
-        if patch_file:
+        patch_files = project.get('patch_files', [])
+        for patch_file in patch_files:
             g_log.info('applying patch file %r for %r' % (patch_file, name))
             patch_file_path = get_input_path(opts, patch_file)
             p = subprocess.Popen(args=['patch', '-i', patch_file_path,





More information about the llvm-commits mailing list