mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
40 lines
483 B
Bash
40 lines
483 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
source test/setup
|
|
|
|
use Test::More
|
|
|
|
clone-foo-and-bar
|
|
|
|
(
|
|
cd $OWNER/foo
|
|
git subrepo clone ../bar bar
|
|
git worktree add -b test ../wt
|
|
) &> /dev/null || die
|
|
|
|
(
|
|
cd $OWNER/bar
|
|
modify-files Bar
|
|
) &> /dev/null || die
|
|
|
|
(
|
|
cd $OWNER/wt
|
|
git subrepo pull --all
|
|
) &> /dev/null || die
|
|
|
|
(
|
|
cd $OWNER/foo
|
|
git merge test
|
|
) &> /dev/null || die
|
|
|
|
{
|
|
is "$(cat $OWNER/foo/bar/Bar)" \
|
|
"a new line" \
|
|
'bar/Bar content correct'
|
|
}
|
|
|
|
done_testing
|
|
|
|
teardown
|