Skip to content

Commit

Permalink
[azp] Fix the 'make check' failure at the step 'Compile sonic sairedi…
Browse files Browse the repository at this point in the history
…s' (#633)

Following sonic-net/sonic-sairedis#1067 and sonic-net/sonic-sairedis#1068, it fixes the below failure at `make check` of building syncd in step 'Compile sonic sairedis':

```
Making check in syncd
make[2]: Entering directory '/__w/1/s/syncd'
make check-TESTS
make[3]: Entering directory '/__w/1/s/syncd'
tests: tests.cpp:843: void test_watchdog_timer_clock_rollback(): Assertion `settimeofday(&currentTime, NULL) == 0' failed.
/bin/bash: line 5: 13004 Aborted (core dumped) ${dir}$tst
FAIL: tests
```
  • Loading branch information
jimmyzhai authored Jun 22, 2022
1 parent 92f5411 commit 40a685c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .azure-pipelines/build-sairedis-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

container:
image: sonicdev-microsoft.azurecr.io:443/${{ parameters.sonic_slave }}:latest
options: "--privileged"

steps:
- checkout: sonic-sairedis
Expand Down Expand Up @@ -103,7 +104,10 @@ jobs:
set -ex
rm ../*.deb || true
./autogen.sh
fakeroot dpkg-buildpackage -b -us -uc -Tbinary-syncd-vs -j$(nproc)
DEB_BUILD_OPTIONS=nocheck fakeroot dpkg-buildpackage -b -us -uc -Tbinary-syncd-vs -j$(nproc)
# Add SYS_TIME capability for settimeofday ok in syncd test
sudo setcap "cap_sys_time=eip" syncd/.libs/tests
make check
mv ../*.deb .
displayName: "Compile sonic sairedis"
- script: |
Expand Down

0 comments on commit 40a685c

Please sign in to comment.