diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2017-02-10 13:30:05 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-02-12 23:50:23 +0200 |
commit | 6aea76e682b52c14f3e3ce51e6acb4a237c4911b (patch) | |
tree | a745f3d37aa7a175d262c29f3ccaa27cb0101f5c /scripts | |
parent | 8d7af82da291e16c770040c857f6d5cb43590df1 (diff) |
vsp-lib: Filter non-filesystem regular characters
Parameters can contain characters not suited to use in filenames.
Add '=','(', and ')' to the filtering, and replace with '_'
This reduces extra escaping, and quoting when working with the output
filenames of failed tests and VSP_KEEP_FRAMES=1
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vsp-lib.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 8f2755b..9e5e57b 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -258,6 +258,9 @@ compare_frames() { local params=${args// /-} params=${params:+-$params} params=${params//\//_} + params=${params//=/_} + params=${params//(/_} + params=${params//)/_} params=$in_fmt-$out_fmt-$size$params if [ x$__vsp_pixel_perfect != xtrue ] ; then |