Skip to content

Commit c85bdf4

Browse files
committed
[#3393] ignore error in libyang tests
... and add bison and flex to ubuntu for completion
1 parent 7730a1d commit c85bdf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: hammer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ def _install_libyang_from_sources(ignore_errors = False):
11331133
execute('git clone https://github.com/CESNET/libyang.git ~/.hammer-tmp/libyang')
11341134
execute(f'git checkout {version}', cwd='~/.hammer-tmp/libyang')
11351135
execute('mkdir ~/.hammer-tmp/libyang/build')
1136-
execute('cmake ..', cwd='~/.hammer-tmp/libyang/build')
1136+
execute('cmake -DBUILD_TESTING=OFF -DCMAKE_C_FLAGS="-Wno-incompatible-pointer-types" ..', cwd='~/.hammer-tmp/libyang/build')
11371137
execute('make -j $(nproc || gnproc || echo 1)', cwd='~/.hammer-tmp/libyang/build')
11381138
execute('sudo make install', cwd='~/.hammer-tmp/libyang/build')
11391139
system, revision = get_system_revision()
@@ -1169,7 +1169,7 @@ def _install_sysrepo_from_sources(ignore_errors = False):
11691169
execute('git clone https://github.com/sysrepo/sysrepo.git ~/.hammer-tmp/sysrepo')
11701170
execute(f'git checkout {version}', cwd='~/.hammer-tmp/sysrepo')
11711171
execute('mkdir ~/.hammer-tmp/sysrepo/build')
1172-
execute('cmake -DREPO_PATH=/etc/sysrepo ..', cwd='~/.hammer-tmp/sysrepo/build')
1172+
execute('cmake -DBUILD_TESTING=OFF -DREPO_PATH=/etc/sysrepo ..', cwd='~/.hammer-tmp/sysrepo/build')
11731173
execute('make -j $(nproc || gnproc || echo 1)', cwd='~/.hammer-tmp/sysrepo/build')
11741174
execute('sudo make install', cwd='~/.hammer-tmp/sysrepo/build')
11751175
system, revision = get_system_revision()
@@ -1847,7 +1847,7 @@ def link_pg_config():
18471847
_apt_update(system, revision, env=env, check_times=check_times, attempts=3, sleep_time_after_attempt=10)
18481848

18491849
packages = ['gcc', 'g++', 'make', 'autoconf', 'automake', 'libtool', 'libssl-dev', 'liblog4cplus-dev',
1850-
'libboost-system-dev', 'gnupg', 'libpcap-dev']
1850+
'libboost-system-dev', 'gnupg', 'libpcap-dev', 'bison', 'flex']
18511851

18521852
if 'docs' in features:
18531853
packages.extend(['python3-sphinx', 'python3-sphinx-rtd-theme',

0 commit comments

Comments
 (0)