1#!/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 25