diff options
author | Abhishek Koneru <akoneru@redhat.com> | 2013-11-06 16:08:39 -0500 |
---|---|---|
committer | Abhishek Koneru <akoneru@redhat.com> | 2013-11-10 15:15:37 -0500 |
commit | b9d125a25e7b53cfe1cc9437b6a31a87c324bbe2 (patch) | |
tree | 28434dbf47dbf2ac6711604ac3f8e4c0513dc327 /scripts/scp_the_repo.exp | |
parent | bb20c9ffb38baae7ae89f16737e37569af445bdc (diff) | |
download | pki-b9d125a25e7b53cfe1cc9437b6a31a87c324bbe2.tar.gz pki-b9d125a25e7b53cfe1cc9437b6a31a87c324bbe2.tar.xz pki-b9d125a25e7b53cfe1cc9437b6a31a87c324bbe2.zip |
Provide compose scripts for tests.
Provide a compose script for building the test rpm and
creating the job xml (by updating the job template with custom values
provided in a job xml config file). Also add a new option
--createrepo to the compose_pki_core_package script to create a repository
of the built rpms at the location specified in a config file.
Tickets #657, 722,723,724
Diffstat (limited to 'scripts/scp_the_repo.exp')
-rwxr-xr-x | scripts/scp_the_repo.exp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/scp_the_repo.exp b/scripts/scp_the_repo.exp new file mode 100755 index 000000000..5b9637239 --- /dev/null +++ b/scripts/scp_the_repo.exp @@ -0,0 +1,16 @@ +#!/usr/bin/expect + +set timeout 20 + +set copy_dir [lindex $argv 0] +set url [lindex $argv 1] + +set password [lindex $argv 2] + +spawn scp -r $copy_dir $url + +expect "*password*" + +send "$password\r" + +expect eof |