# HG changeset patch # User Graham Percival # Date 1253001855 -3600 # Node ID c2a39f6a2f1efb313fcd2bcdf96613fc94c035d5 # Parent c5d81ab00fef1eb474570445d405866b87f9a7de FIXME DO NOT SUBMIT: disgusting workaround for -HEAD issues. diff -r c5d81ab00fef -r c2a39f6a2f1e test-lily/rsync-test.py --- a/test-lily/rsync-test.py Mon Sep 14 11:33:47 2009 +0100 +++ b/test-lily/rsync-test.py Tue Sep 15 09:04:15 2009 +0100 @@ -149,12 +149,21 @@ current_test_output = '' for f in outputs: m = re.search ('lilypond-([.0-9]+)-([0-9]+).test-output.tar.bz2', f) + ishead = 0 + if not m: + m = re.search ('lilypond-([.0-9]+)-(HEAD).test-output.tar.bz2', f) + # ugly hack for "latest version" + #m.group(2) = 999 ## doesn't work; can't modify a group + ishead = 1 if not m: printf (f) assert 0 version = list (map (int, m.group (1).split ('.'))) - build = int (m.group (2)) + if ishead: + build = 999 + else: + build = int (m.group (2)) tup = (version, build) if tup <= current_tuple: