aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreasonweii <sharkhw@huawei.com>2021-11-17 22:00:17 +0800
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2021-11-17 15:59:09 +0000
commit7e4ea1702716f45fa40c14c1ac3a5488512dfa9c (patch)
treedff35cd5e9a7280b8e8b0171beccfc3c523d2719
parente57aac1338d2d51330f798c4c84e2058760e8e7c (diff)
downloadwireshark-cherry-pick-78067deb-2.tar.gz
wireshark-cherry-pick-78067deb-2.tar.bz2
wireshark-cherry-pick-78067deb-2.zip
tests: fix test fails on Ubuntu, fix #17730cherry-pick-78067deb-2
unset the env variable XDG_CONFIG_HOME in ubuntu.yaml (action config file), wireshark will use $HOME evn variable; and i test those two solutions, all test case is success; (cherry picked from commit 78067deb89205d29bf6b00b7fdd479a188bf18e2)
-rw-r--r--.github/workflows/ubuntu.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 695badd6a3..ad8fd5d6f3 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -31,7 +31,11 @@ jobs:
- name: Run tests
env:
PYTEST_ADDOPTS: --skip-missing-programs=rawshark
- run: pytest
+ # Remove the XDG_CONFIG_HOME variable and ensure that tshark reads configurations from the home directory
+ # which created by pytest, and test cases will success in Ubuntu System.
+ run: |
+ unset XDG_CONFIG_HOME
+ pytest
working-directory: build
- name: Build debian pkg
run: dpkg-buildpackage -b -us -uc -jauto