diff options
author | Michael Vogt <mvo@debian.org> | 2014-01-25 22:40:04 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-01-25 22:40:04 +0100 |
commit | 6fa5b7b71e5c8ec5d4bec7bec3ef311c4d9c826b (patch) | |
tree | a02ec2b10f30e713eedd3f7c63cc44051fb6c859 /test/integration/test-apt-progress-fd-conffile | |
parent | 72af508bdbca55d0752aab3369faa1dc944a04e7 (diff) | |
parent | 9aef3908c892f9d9349d8bf8a5ceaeea313ba0fe (diff) |
Merge branch 'debian/sid' into ubuntu/master
Conflicts:
configure.ac
Diffstat (limited to 'test/integration/test-apt-progress-fd-conffile')
-rwxr-xr-x | test/integration/test-apt-progress-fd-conffile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/test/integration/test-apt-progress-fd-conffile b/test/integration/test-apt-progress-fd-conffile index 0b42b1b2f..085d5e871 100755 --- a/test/integration/test-apt-progress-fd-conffile +++ b/test/integration/test-apt-progress-fd-conffile @@ -32,12 +32,19 @@ testsuccess aptget install compiz-core=1.0 # fake conffile change echo "meep" >> rootdir/etc/compiz.conf/compiz.conf -# install +# FIXME: Is there really no way to see if dpkg actually prompts? +msgtest 'Test for successful execution of' 'apt-get install compiz-core=2.0' +OUTPUT=$(mktemp) +addtrap "rm $OUTPUT;" exec 3> apt-progress.log -echo n | aptget install compiz-core=2.0 -o APT::Status-Fd=3 -o Dpkg::Use-Pty=false +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 + msgpass +else + echo + cat $OUTPUT + msgfail +fi # and ensure there is a conffile message in the file -msgtest "Conffile prompt in apt-progress.log" +msgtest 'Test status fd for an included' 'pmconffile msg' grep -q "pmconffile:/etc/compiz.conf/compiz.conf" apt-progress.log && msgpass || (cat apt-progress.log && msgfail) - -cat apt-progress.log
\ No newline at end of file |