tests/utils/utils.sh: bt_diff(): validate that both files exist
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 9 May 2024 04:44:34 +0000 (00:44 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 10 May 2024 18:12:28 +0000 (14:12 -0400)
commit2e0d6c2597eb5aed4663638d2e1acc735bf1f593
tree65e7d0cfb591e7a78041cbf2af9b88d0fd531b78
parent774ee58c27ddc0b09be18077accf96c10d765410
tests/utils/utils.sh: bt_diff(): validate that both files exist

Otherwise bt_diff() returns 0 (happy) with a nonexistent file.

This change reveals that `tests/plugins/src.ctf.fs/field/test-field.sh`
passes, but for the wrong reason: run_python() doesn't exist (I replaced
it with bt_run_in_py_env() a while ago), therefore that line doesn't
create any expectation file and bt_diff() returns 0. Change it to
use bt_run_in_py_env().

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I259123f5c0946ece7f58e4ef185313bf26354b46
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12534
Tested-by: jenkins <jenkins@lttng.org>
tests/plugins/src.ctf.fs/field/test-field.sh
tests/utils/utils.sh
This page took 0.026 seconds and 4 git commands to generate.