OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 # -*- Mode: Shell-script; tab-width: 4; indent-tabs-mode: nil; -*- | 2 # -*- Mode: Shell-script; tab-width: 4; indent-tabs-mode: nil; -*- |
3 | 3 |
4 # ***** BEGIN LICENSE BLOCK ***** | 4 # ***** BEGIN LICENSE BLOCK ***** |
5 # Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 # Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
6 # | 6 # |
7 # The contents of this file are subject to the Mozilla Public License Version | 7 # The contents of this file are subject to the Mozilla Public License Version |
8 # 1.1 (the "License"); you may not use this file except in compliance with | 8 # 1.1 (the "License"); you may not use this file except in compliance with |
9 # the License. You may obtain a copy of the License at | 9 # the License. You may obtain a copy of the License at |
10 # http://www.mozilla.org/MPL/ | 10 # http://www.mozilla.org/MPL/ |
(...skipping 30 matching lines...) Expand all Loading... |
41 # | 41 # |
42 # get-universe.sh reads the processed javascript logs and writes to | 42 # get-universe.sh reads the processed javascript logs and writes to |
43 # stdout the unique set of fields to be used as the "universe" of test | 43 # stdout the unique set of fields to be used as the "universe" of test |
44 # run data. These values are used by pattern-expander.pl and | 44 # run data. These values are used by pattern-expander.pl and |
45 # pattern-extracter.pl to encode the known failure files into regular | 45 # pattern-extracter.pl to encode the known failure files into regular |
46 # expressions. | 46 # expressions. |
47 | 47 |
48 export LC_ALL=C # handle all character sets | 48 export LC_ALL=C # handle all character sets |
49 | 49 |
50 (for f in $@; do | 50 (for f in $@; do |
51 grep -h -m 1 TEST_ID $f | tr -dc '[\040-\177\n]' | sed 's|^TEST_ID=[^,]*, \(
TEST_BRANCH=[^,]*, TEST_REPO=[^,]*, TEST_BUILDTYPE=[^,]*, TEST_TYPE=[^,]*\), \(T
EST_OS=[^,]*, TEST_KERNEL=[^,]*, TEST_PROCESSORTYPE=[^,]*, TEST_MEMORY=[^,]*, TE
ST_CPUSPEED=[^,]*, TEST_TIMEZONE=[^,]*\),.*|\2, \1|' | 51 grep -h -m 1 TEST_ID $f | tr -dc '[\040-\177\n]' | sed 's|^TEST_ID=[^,]*, \(
TEST_BRANCH=[^,]*, TEST_REPO=[^,]*, TEST_BUILDTYPE=[^,]*, TEST_TYPE=[^,]*\), \(T
EST_OS=[^,]*, TEST_KERNEL=[^,]*, TEST_PROCESSORTYPE=[^,]*, TEST_MEMORY=[^,]*, TE
ST_TIMEZONE=[^,]*, TEST_OPTIONS=[^,]*\),.*|\2, \1|' |
52 done) | sort -u | 52 done) | sort -u |
OLD | NEW |