scripts: Mark git repository as safe
Git will refuse to generate information for the report if the repository
is owned by a different user (root in the container vs the real owner
outside).
e.g:
Error generating human readable git reference: fatal: unsafe repository ('/cloud-hypervisor' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /cloud-hypervisor
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
cac42301f8
commit
f1ea69474d
1 changed files with 3 additions and 0 deletions
|
|
@ -113,6 +113,9 @@ if [ -n "$test_filter" ]; then
|
|||
test_binary_args+=("--test-filter $test_filter")
|
||||
fi
|
||||
|
||||
# Ensure that git commands can be run in this directory (for metrics report)
|
||||
git config --global --add safe.directory $PWD
|
||||
|
||||
export RUST_BACKTRACE=1
|
||||
time target/$BUILD_TARGET/release/performance-metrics ${test_binary_args[*]}
|
||||
RES=$?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue