run-tests: make nixosSearch compatible with --copy-src
This commit is contained in:
@@ -15,4 +15,4 @@ trap "atExit" EXIT
|
||||
|
||||
rsync -a --delete --exclude='.git*' "$scriptDir/../" $tmp/src
|
||||
echo "Copied src"
|
||||
_nixBitcoinInCopySrc=1 $tmp/src/test/run-tests.sh "${args[@]}"
|
||||
_nixBitcoinInCopiedSrc=1 $tmp/src/test/run-tests.sh "${args[@]}"
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# Create and maintain a minimal git repo at the root of the copied src
|
||||
(
|
||||
cd "$scriptDir/.."
|
||||
amend=--amend
|
||||
if [[ ! -e .git ]]; then
|
||||
git init
|
||||
amend=
|
||||
fi
|
||||
git add .
|
||||
if ! git diff --quiet --cached; then
|
||||
git commit -a $amend -m -
|
||||
fi
|
||||
) >/dev/null
|
||||
Reference in New Issue
Block a user