diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-10-20 23:33:48 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-10-21 20:38:46 +0000 |
commit | 7f6a4926d2f6a135960146041c29802db616aa63 (patch) | |
tree | c758bdbd80e0984b8dd5e760aa01f65754e4442a /test/suite-capture.sh | |
parent | 10a1e8d261d30ce30300c6f51863b74184e61bd5 (diff) | |
download | wireshark-7f6a4926d2f6a135960146041c29802db616aa63.tar.gz |
test: make GTK support optional
Current Ubuntu buildbot is failing because GTK support was removed.
Tests should not fail if GTK is not available, so make it optional.
Change-Id: I1640c8bcea5208299f6846eb366e105c39a3ebf3
Reviewed-on: https://code.wireshark.org/review/18345
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'test/suite-capture.sh')
-rwxr-xr-x | test/suite-capture.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/suite-capture.sh b/test/suite-capture.sh index af02d6eefb..3b0c685e9e 100755 --- a/test/suite-capture.sh +++ b/test/suite-capture.sh @@ -458,6 +458,12 @@ wireshark_capture_suite() { } wireshark_gtk_capture_suite() { + if [ ! -x "$WIRESHARK_GTK" ]; then + echo -n ' (no GTK support)' + test_step_skipped + return + fi + # k: start capture immediately # WIRESHARK_QUIT_AFTER_CAPTURE needs to be set. |