Changeset 1594 in ProjectBuilder for devel/pb


Ignore:
Timestamp:
May 24, 2012, 3:41:09 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bug in VE context around the chown part (no quotes without the sudo)
  • Improve mageia 2 deps
  • pbtest is nearly at the end
Location:
devel/pb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1593 r1594  
    23182318        if (defined $shcmdroot) {
    23192319            # This should help overcome a CentOS 5.8 bug as well as having a simper sequence
    2320             pb_system("$shcmdroot \"chown -R $mac $tdir\"","Adapt owner in $tdir to $mac");
     2320            pb_system("$shcmdroot chown -R $mac $tdir","Adapt owner in $tdir to $mac");
    23212321        } else {
    23222322            pb_system("$shcmd \"sudo chown -R $mac $tdir\"","Adapt owner in $tdir to $mac");
  • devel/pb/t/pbtest

    r1593 r1594  
    1212
    1313# You may have multiple distros here
    14 TESTVEDIST="fedora-16-x86_64 mageia-1-i386 debian-6.0-x86_64 ubuntu-11.04-i386"
     14TESTVEDIST="fedora-16-x86_64 mageia-1-i386 debian-6.0-x86_64 ubuntu-12.04-i386"
    1515# Only one VM is tested for now.
    1616TESTVMDIST="fedora-16-i386"
     
    3131    echo "INFO (as pbtest): Now running $cmd [$msg]"
    3232fi
    33 sudo -n su - pbtest -c "$cmd"
     33sudo -n -E su - pbtest -c "$cmd"
    3434ret=$?
    3535if [ $ret -ne 0 ] && [ _"$msg" == _"" ]; then
     
    8383# Force pbtest account
    8484sudocmd "perl -pi -e 's|^pbtest:.*|pbtest:$2a$08$2Q.tEty4v/fU0RyPeDelk.AjLAtXUXU3DpSs/l/8YrFmau1LJRCqC:15483:0:99999:7:::|' /etc/shadow"
    85 cat > /tmp/.profile << EOF
    86 export PBPROJ=$PBPROJ
    87 EOF
    88 sudocmd "mv /tmp/.profile $PBTEST/.profile"
    89 sudocmd "chown pbtest:pbtest $PBTEST/.profile"
     85sudopbtest "echo export PBPROJ=$PBPROJ >> $PBTEST/.bash_profile"
    9086sudopbtest "env | grep PBPROJ"
    9187
     
    139135pbparallel pb = 6
    140136vepath default = $PBTEST/ve
    141 vmpath default = $PBTEST/tmp
     137vmpath default = $PBTEST/vm
    142138EOF
    143139sudocmd "mv /tmp/.pbrc $PBTEST/.pbrc"
     
    149145vmmonport default = 4000
    150146EOF
    151 echo "vmlist default = `echo $TESTVMDIST | sed 's/ */,/g'`" >> /tmp/.pbrc
     147echo "vmlist default = `echo $TESTVMDIST | sed 's/ /,/g'`" >> /tmp/.pbrc
    152148sudocmd "mv /tmp/.pbrc $PBTEST/vm/.pbrc"
    153149
Note: See TracChangeset for help on using the changeset viewer.