Skip to content

Commit

Permalink
skip test if curses disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Nov 15, 2024
1 parent 19a4784 commit dc7de5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test_restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ cmp_substr "$(${RMW_TEST_CMD_STRING} -z ${PRIMARY_WASTE_DIR}/files/. && exit 1)"

# I don't want to force anyone to install Xvfb for this single test
# so I'll only run it if it's already installed
if [ -n "$(command -v Xvfb)" ]; then
if [ -n "$(command -v Xvfb)" ] && [ ! $(grep "DISABLE_CURSES" "$MESON_BUILD_ROOT/src/config.h") ]; then
# Start Xvfb on display :99
Xvfb :99 &
XVFB_PID=$!
Expand All @@ -133,7 +133,6 @@ if [ -n "$(command -v Xvfb)" ]; then
${RMW_TEST_CMD_STRING} -s &
RMW_PID=$!
sleep 1s && kill $RMW_PID

kill $XVFB_PID

# Restore the original DISPLAY value if it was set
Expand Down

0 comments on commit dc7de5a

Please sign in to comment.