Merge pull request #709 from liubin/tmp/debug-travis-sudo

ci: run agent test under root user
This commit is contained in:
Peng Tao 2020-09-12 12:47:06 +08:00 committed by GitHub
commit 37e3f89424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}