Skip to content

Commit

Permalink
Fix warnings in the to_string functions of QoSes & reducing timeout o…
Browse files Browse the repository at this point in the history
…f interoperability_report.py (#9)

* Fix warnings in the to_string functions of QoSes

* Reducing the timeout to improve performance in GitHub actions
  • Loading branch information
angelrti authored Mar 21, 2023
1 parent 0d8fdab commit c6b8f93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion interoperability_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def main():
# applications. A TestSuite contains a collection of TestCases.
suite = junitparser.TestSuite(f"{name_publisher}---{name_subscriber}")

timeout = 10
timeout = 5
now = datetime.now()

t_suite_module = importlib.import_module(options['test_suite'])
Expand Down
6 changes: 6 additions & 0 deletions srcCxx/shape_main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class QosUtils {
} else if (reliability_value == RELIABLE_RELIABILITY_QOS){
return "RELIABLE";
}
return "Error stringifying Reliability kind.";
}

static std::string to_string(DurabilityQosPolicyKind durability_value)
Expand All @@ -90,6 +91,7 @@ class QosUtils {
} else if (durability_value == PERSISTENT_DURABILITY_QOS){
return "PERSISTENT";
}
return "Error stringifying Durability kind.";
}

static std::string to_string(DataRepresentationId_t data_representation_value)
Expand All @@ -99,6 +101,7 @@ class QosUtils {
} else if (data_representation_value == XCDR2_DATA_REPRESENTATION){
return "XCDR2";
}
return "Error stringifying DataRepresentation.";
}

static std::string to_string(Verbosity verbosity_value)
Expand All @@ -116,6 +119,7 @@ class QosUtils {
default:
break;
}
return "Error stringifying verbosity.";
}

static std::string to_string(OwnershipQosPolicyKind ownership_kind_value)
Expand All @@ -125,6 +129,7 @@ class QosUtils {
} else if (ownership_kind_value == EXCLUSIVE_OWNERSHIP_QOS){
return "EXCLUSIVE";
}
return "Error stringifying Ownership kind.";
}

static std::string to_string(HistoryQosPolicyKind history_kind_value)
Expand All @@ -134,6 +139,7 @@ class QosUtils {
} else if (history_kind_value == KEEP_LAST_HISTORY_QOS){
return "KEEP_LAST";
}
return "Error stringifying History kind.";
}
};

Expand Down

0 comments on commit c6b8f93

Please sign in to comment.