testModPhp test failure occurs in Lamp saucy server tests

Bug #1203048 reported by Para Siva
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Test Cases
Fix Released
Undecided
Unassigned

Bug Description

Lamp server test testModPhp is failing with today's saucy server images (20130719) in the post installation tests. This appears to occur on both amd64 and i386 images and has not been seen before.

The following is the failure being reported,
F
    ======================================================================
    FAIL: testModPhp (__main__.LampTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "test.py", line 46, in testModPhp
        self.assertEquals('Hello World!', output)
    AssertionError: 'Hello World!' != '<? $world="Hello World!"; echo $world; ?>'

Steps to reproduce:
1. Provision a LAMP saucy server with today's image
2. Run the following test,
http://bazaar.launchpad.net/~ubuntu-server-dev/ubuntu-test-cases/server-tests-raring/view/head:/testsuites/lamp/test_mod_php/test.py

The impacted jobs are,
https://jenkins.qa.ubuntu.com/job/saucy-server-amd64-smoke-lamp/74/?
and
https://jenkins.qa.ubuntu.com/job/saucy-server-i386-smoke-lamp/73/?

The post installation test output and the installation logs are attached

Related branches

Para Siva (psivaa)
summary: - testModPhp test failure in Lamp server tests
+ testModPhp test failure in Lamp saucy server tests
summary: - testModPhp test failure in Lamp saucy server tests
+ testModPhp test failure occurs in Lamp saucy server tests
Revision history for this message
Para Siva (psivaa) wrote :
description: updated
Revision history for this message
Para Siva (psivaa) wrote :
Revision history for this message
Para Siva (psivaa) wrote :
Revision history for this message
Robie Basak (racb) wrote :

This was triggered by php5 5.5 hitting Saucy.

I think the problem is with the test. This line:

        php_fh.write("<? $world=\"Hello World!\"; echo $world; ?>")

should be:

        php_fh.write("<?php $world=\"Hello World!\"; echo $world; ?>")

I'm not sure when or why the previous behaviour is no longer supported, but the current PHP documentation uses "<?php". Is this some kind of backwards incompatible change in the documentation, and if so does this need to be in our release notes?

Revision history for this message
Robie Basak (racb) wrote :

Some kind of backwards incompatible change in the default configuration, I mean.

Revision history for this message
Robie Basak (racb) wrote :

They're called "short tags".

http://php.net/manual/en/language.basic-syntax.phptags.php says they're off by default.

Revision history for this message
Robie Basak (racb) wrote :

Looks like the default for /etc/php5/apache2/php.ini's short_open_tag setting changed from On to Off in the Debian packaging. I'm not sure whether this was done by Debian or by upstream directly.

Revision history for this message
Robie Basak (racb) wrote :

I've fixed this in revision 91 by fixing the test.

Changed in ubuntu-test-cases:
status: New → Fix Committed
Revision history for this message
Robie Basak (racb) wrote :

Jenkins is now reporting success for this job.

Changed in ubuntu-test-cases:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.