Skip to content

Commit c6fb064

Browse files
committed
ci: Install tshark rather than wireshark for tests
1 parent 3f83385 commit c6fb064

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/tests-xv4.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
sudo apt-get update
7676
sudo apt-get install -y libusb-1.0-0-dev # required to build rkflashtool
7777
sudo apt-get install -y binutils-arm-none-eabi # required to test bin2elf
78-
sudo apt-get install -y wireshark # required to use LUA dissectors
78+
sudo apt-get install -y tshark # required to use LUA dissectors
7979
python -m pip install --upgrade pip
8080
pip install pyserial # required to test comm_* tools
8181
pip install lz4 # required to extract compressed files within the FW modules
@@ -103,8 +103,10 @@ jobs:
103103
run: |
104104
mkdir -p $HOME/.config/wireshark
105105
cp "comm_dissector/wireshark/init.lua" "$HOME/.config/wireshark/init.lua"
106-
sed -i 's/dji_script_path = \".*\"/dji_script_path = \"${{ env.working-directory }}\/comm_dissector\/wireshark\/\"/' "$HOME/.config/wireshark/init.lua"
107-
touch "$HOME/.config/wireshark/user_dlts"
106+
sed -i 's@dji_script_path = \".*\"@dji_script_path = \"'"$(pwd)"'/comm_dissector/wireshark/\"@' "$HOME/.config/wireshark/init.lua"
107+
# The above setup is enough to have protocols visible
108+
tshark -G protocols | grep DJI
109+
echo '# This file is automatically generated, DO NOT MODIFY.' | tee "$HOME/.config/wireshark/user_dlts"
108110
echo '"User 3 (DLT=150)","dji_dumlv1","0","","0",""' | tee -a "$HOME/.config/wireshark/user_dlts"
109111
110112
- name: Lint with flake8

0 commit comments

Comments
 (0)