ci: run agent test under root user

Running agent test now only support normal user,
under root user also needed.

Fixes: #708

Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
bin liu 2020-09-11 19:25:44 +08:00
parent 63138a4f28
commit 90e0dc8809
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ install:
- export RUST_AGENT=yes
- make -C ${TRAVIS_BUILD_DIR}/src/agent
- make -C ${TRAVIS_BUILD_DIR}/src/agent check
- sudo -E PATH=$PATH make -C ${TRAVIS_BUILD_DIR}/src/agent check
before_script:
- "ci/install_go.sh"

View File

@ -955,7 +955,7 @@ mod tests {
continue;
}
let error_msg = format!("{}", result.unwrap_err());
let error_msg = format!("{:#}", result.unwrap_err());
assert!(error_msg.contains(d.error_contains), msg);
}