~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to test/integration/test-apt-progress-fd-conffile

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2014-02-07 21:03:22 UTC
  • mfrom: (1.4.80 sid)
  • Revision ID: package-import@ubuntu.com-20140207210322-s7f833aga98ibdkm
Tags: 0.9.15.1ubuntu1
mergedĀ fromĀ debian/sid

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
# fake conffile change
33
33
echo "meep" >> rootdir/etc/compiz.conf/compiz.conf
34
34
 
35
 
# install
 
35
# FIXME: Is there really no way to see if dpkg actually prompts?
 
36
msgtest 'Test for successful execution of' 'apt-get install compiz-core=2.0'
 
37
OUTPUT=$(mktemp)
 
38
addtrap "rm $OUTPUT;"
36
39
exec 3> apt-progress.log
37
 
echo n | aptget install compiz-core=2.0  -o APT::Status-Fd=3 -o Dpkg::Use-Pty=false
 
40
if aptget install compiz-core=2.0 -o APT::Status-Fd=3 -o Dpkg::Use-Pty=false -o dpkg::options::='--force-confold' >${OUTPUT} 2>&1; then
 
41
        msgpass
 
42
else
 
43
        echo
 
44
        cat $OUTPUT
 
45
        msgfail
 
46
fi
38
47
 
39
48
# and ensure there is a conffile message in the file
40
 
msgtest "Conffile prompt in apt-progress.log"
 
49
msgtest 'Test status fd for an included' 'pmconffile msg'
41
50
grep -q "pmconffile:/etc/compiz.conf/compiz.conf" apt-progress.log && msgpass || (cat apt-progress.log && msgfail)
42
 
 
43
 
cat apt-progress.log
 
 
b'\\ No newline at end of file'