Skip to content

Commit

Permalink
Merge pull request #220 from emqx/develop
Browse files Browse the repository at this point in the history
Additional contents for 0.3.1
  • Loading branch information
jinfahua authored Apr 16, 2020
2 parents 6ba25b3 + aa137b1 commit 1a3043a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/run_fvt_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jobs:
run: |
sudo apt update && sudo apt install -y libxml2-utils
cd jmeter_logs
if [ "$(xmllint --format --xpath '/testResults/sample/@rc' $(ls *.jtl) | sed -r 's/ /\n/g;' | sort -u | grep -E 'rc=\"[45][0-9][0-9]\"|rc=\"\"')" != "" ]; then
if [ ! -z "$(cat *.jtl| grep '<failure>' | awk -F '>' '{print $2}' | awk -F '<' '{print $1}' | grep true)" ] ||
[ "$(xmllint --format --xpath '/testResults/sample/@rc' $(ls *.jtl) | sed -r 's/ /\n/g;' | sort -u | grep -E 'rc=\"[45][0-9][0-9]\"|rc=\"\"')" != "" ]; then
echo -e "---------------------------------------------\n"
echo "FVT tests error"
exit 1
Expand Down Expand Up @@ -125,7 +126,8 @@ jobs:
run: |
sudo apt update && sudo apt install -y libxml2-utils
cd jmeter_logs
if [ "$(xmllint --format --xpath '/testResults/sample/@rc' $(ls *.jtl) | sed -r 's/ /\n/g;' | sort -u | grep -E 'rc=\"[45][0-9][0-9]\"|rc=\"\"')" != "" ]; then
if [ ! -z "$(cat *.jtl| grep '<failure>' | awk -F '>' '{print $2}' | awk -F '<' '{print $1}' | grep true)" ] ||
[ "$(xmllint --format --xpath '/testResults/sample/@rc' $(ls *.jtl) | sed -r 's/ /\n/g;' | sort -u | grep -E 'rc=\"[45][0-9][0-9]\"|rc=\"\"')" != "" ]; then
echo -e "---------------------------------------------\n"
echo "FVT tests error"
exit 1
Expand Down Expand Up @@ -246,7 +248,8 @@ jobs:
run: |
sudo apt update && sudo apt install -y libxml2-utils
cd jmeter_logs
if [ "$(xmllint --format --xpath '/testResults/sample/@rc' $(ls *.jtl) | sed -r 's/ /\n/g;' | sort -u | grep -E 'rc=\"[45][0-9][0-9]\"|rc=\"\"')" != "" ]; then
if [ ! -z "$(cat *.jtl| grep '<failure>' | awk -F '>' '{print $2}' | awk -F '<' '{print $1}' | grep true)" ] ||
[ "$(xmllint --format --xpath '/testResults/sample/@rc' $(ls *.jtl) | sed -r 's/ /\n/g;' | sort -u | grep -E 'rc=\"[45][0-9][0-9]\"|rc=\"\"')" != "" ]; then
echo -e "---------------------------------------------\n"
echo "FVT tests error"
exit 1
Expand Down
2 changes: 2 additions & 0 deletions xstream/extensions/edgex_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ func (es *EdgexSource) getValue(r models.Reading, logger api.Logger) (interface{
}
case "STRING":
return v, nil
case "BINARY":
return nil, fmt.Errorf("Unsupport for binary type, the value will be ignored.")
default:
logger.Warnf("unknown type %s return the string value", t)
return v, nil
Expand Down

0 comments on commit 1a3043a

Please sign in to comment.