blob: 08869fe58a562f2faca5da552d02088b9d32c1f0 [file] [log] [blame]
Jens Geyerd629ea02015-09-23 21:16:50 +02001#!/bin/bash
2
3if [ -z $1 ]; then
4 echo Usage: $0 LANGUAGE
5 echo Re-list all failures of a specific LANGUAGE into known_failures_Linux.json
6 echo LANGUAGE should be library name like cpp, java, py etc
7 exit 1
8fi
9
10if [ -z $PYTHON]; then
11 PYTHON=python
12fi
13
14TARGET_LANG=$1
15OUT_FILE=known_failures_Linux.json
16echo Rebuilding known failures for $TARGET_LANG
17
18TMPFILE=.__tmp__rebuild__
19grep -v -e "\"$1-" -e "\-$1_" $OUT_FILE > $TMPFILE
20mv $TMPFILE $OUT_FILE
21$PYTHON test.py --client $1
22$PYTHON test.py -U merge
23$PYTHON test.py --server $1
24$PYTHON test.py -U merge