Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Npaintrobo committed Jan 4, 2024
1 parent f5311fb commit a7d64e2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@ ng() {

res=0

touch /tmp/test.log
touch test.log

# Parrot-node
(ros2 run robosys2023ros parrot > /tmp/test.log 2>&1)&
(ros2 run robosys2023ros parrot > test.log 2>&1)&
# Human-node
{
(sleep 4 ; echo "aiueo"; sleep 1; echo "123456789"; sleep 1; echo "a1b2c3d4e5") | ros2 run robosys2023ros human
}

sleep 20

cat /tmp/test.log

# Parrot-log
cat /tmp/test.log | grep 'aiueo' || ng ${LINENO}
cat /tmp/test.log | grep '123456789' || ng ${LINENO}
cat /tmp/test.log | grep 'a1b2c3d4e5' || ng ${LINENO}
cat test.log | grep 'aiueo' || ng ${LINENO}
cat test.log | grep '123456789' || ng ${LINENO}
cat test.log | grep 'a1b2c3d4e5' || ng ${LINENO}

rm test.log
echo ""
Expand Down

0 comments on commit a7d64e2

Please sign in to comment.