Skip to content

Commit

Permalink
A few tweaks more
Browse files Browse the repository at this point in the history
  • Loading branch information
dbutenhof committed Apr 21, 2023
1 parent ced6fc5 commit 2a59acb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jenkins/run-server-func-tests
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fi

if [[ ${exit_status} -ne 0 ]]; then
dump_journal
printf -- "\nFunctional tests exited with code %s\n" ${exit_status}
printf -- "\nFunctional tests exited with code %s\n" ${exit_status} >&2
fi

if [[ -z "${cleanup_flag}" ]]; then
Expand Down
14 changes: 9 additions & 5 deletions lib/pbench/server/api/resources/datasets_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,20 @@ def _next_token(self, optional: bool = False) -> str:
return next

def parse_filter(self) -> "Term":
"""Parse a filter term like "<key>:[<op>]<value>[:<type>]"
"""Parse a filter term like "<key>:[<operator>]<value>[:<type>]"
Returns a dictionary with "key", "operator" (default "="), "value", and
"type" fields.
Separates the "key", "operator", "value", and "type" fields of a filter
expression.
The key and value can be quoted to include mixed case and symbols,
including the ":"character, by starting and starting and ending the key
or value with the "'" or '"' character, e.g.,
including the ":" character, by starting and starting and ending the
key or value with the "'" or '"' character, e.g.,
"'dataset.metalog.tool/iteration:1':'foo:1#bar':str".
The "operator", if omitted, defaults to "=", and "type" defaults to
"str" (string), so that `dataset.name:foo` has the same effect as
`dataset.name:=foo:str`.
Returns:
self
"""
Expand Down

0 comments on commit 2a59acb

Please sign in to comment.