Patchwork run-tests: do not fail on empty tsttest file

login
register
mail settings
Submitter Simon Heimberg
Date Feb. 7, 2013, 5:57 a.m.
Message ID <784bc7d35c555e8a3cb7.1360216653@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/823/
State Accepted
Commit ba5e71770db261c164e1ac93b4546da98a272e67
Headers show

Comments

Simon Heimberg - Feb. 7, 2013, 5:57 a.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1351112971 -7200
# Branch stable
# Node ID 784bc7d35c555e8a3cb73d5088b0c3fa8d6f6914
# Parent  8e31997ac2295deb149ac23c0f9635c6613ba4e6
run-tests: do not fail on empty tsttest file

Initialize n for not failing on empty tsttest files.
Bryan O'Sullivan - Feb. 8, 2013, 10:55 a.m.
On Wed, Feb 6, 2013 at 9:57 PM, Simon Heimberg <simohe@besonet.ch> wrote:

> run-tests: do not fail on empty tsttest file
>

Pushed to crew, thanks.

Patch

diff -r 8e31997ac229 -r 784bc7d35c55 tests/run-tests.py
--- a/tests/run-tests.py	Don Feb 07 06:50:27 2013 +0100
+++ b/tests/run-tests.py	Mit Okt 24 23:09:31 2012 +0200
@@ -622,6 +622,7 @@ 
         script.append('set -x\n')
     if os.getenv('MSYSTEM'):
         script.append('alias pwd="pwd -W"\n')
+    n = 0
     for n, l in enumerate(t):
         if not l.endswith('\n'):
             l += '\n'