mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 23:12:55 +00:00
basic-test: add pkgs_cmd helper and add remote git config for setitng user.name + user.email
This commit is contained in:
parent
cdb8b7a899
commit
1fbabe47e8
1 changed files with 9 additions and 3 deletions
|
@ -5,9 +5,15 @@
|
||||||
|
|
||||||
export TESTPATH="$( builtin cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
export TESTPATH="$( builtin cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
function pkgs_cmd {
|
||||||
|
ssh clime@pkgs.fedoraproject.org $1
|
||||||
|
}
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup BasicTest
|
rlPhaseStartSetup BasicTest
|
||||||
ssh clime@pkgs.fedoraproject.org 'setup_git_package prunerepo'
|
pkgs_cmd 'git config --global user.email "clime@redhat.com"' # todo: add this to setup?
|
||||||
|
pkgs_cmd 'git config --global user.name "clime"' # todo: add this to setup?
|
||||||
|
pkgs_cmd 'setup_git_package prunerepo'
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
rlPhaseStartTest BasicTest
|
rlPhaseStartTest BasicTest
|
||||||
|
@ -39,7 +45,7 @@ rlJournalStart
|
||||||
|
|
||||||
rlPhaseStartCleanup BasicTest
|
rlPhaseStartCleanup BasicTest
|
||||||
rm -rf $TESTPATH/prunerepo $TESTPATH/prunerepo-copy* $TESTPATH/prunerepo-1.1.tar.gz
|
rm -rf $TESTPATH/prunerepo $TESTPATH/prunerepo-copy* $TESTPATH/prunerepo-1.1.tar.gz
|
||||||
ssh clime@pkgs.fedoraproject.org 'rm -rf /srv/git/repositories/prunerepo.git'
|
pkgs_cmd 'rm -rf /srv/git/repositories/prunerepo.git'
|
||||||
ssh clime@pkgs.fedoraproject.org 'rm -rf /srv/cache/lookaside/pkgs/prunerepo'
|
pkgs_cmd 'rm -rf /srv/cache/lookaside/pkgs/prunerepo'
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
rlJournalEnd &> /dev/null
|
rlJournalEnd &> /dev/null
|
||||||
|
|
Loading…
Add table
Reference in a new issue