Merge lp:~psivaa/ubuntu-test-cases/mod_php-fix into lp:ubuntu-test-cases/server

Proposed by Para Siva
Status: Merged
Merged at revision: 96
Proposed branch: lp:~psivaa/ubuntu-test-cases/mod_php-fix
Merge into: lp:ubuntu-test-cases/server
Diff against target: 40 lines (+4/-4)
3 files modified
testsuites/lamp/test_mod_php/test.py (+1/-1)
testsuites/lamp/test_mysql_select_from_users/test.py (+1/-1)
testsuites/lamp/test_mysql_show_databases/test.py (+2/-2)
To merge this branch: bzr merge lp:~psivaa/ubuntu-test-cases/mod_php-fix
Reviewer Review Type Date Requested Status
Robie Basak Approve
Review via email: mp+204273@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Robie Basak (racb) wrote :

lgtm. I know that Apache in Debian (and now Trusty) has this changed path. Thanks!

review: Approve
95. By Para Siva

Following mysql-5.5 changes

96. By Para Siva

localhost is now only available for root

Revision history for this message
Para Siva (psivaa) wrote :

I've made some changes to the mysql tests after the changes for mysql-5.5 on 5.5.35+dfsg-1ubuntu1. Could you please verify these changes as well. Thanks

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

This is certainly no worse than it was before. Please also change the comment from 7 to 5 - otherwise the comment will mismatch the code.

A suggest for improvement here (but I don't wish for this to block merging this branch now): I'd say that we should check the return value of the mysql command, since that is the conventional programmatic way for it to declare that there was a problem. subprocess.Popen provides a mechanism to do this.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'testsuites/lamp/test_mod_php/test.py'
--- testsuites/lamp/test_mod_php/test.py 2013-07-19 15:01:29 +0000
+++ testsuites/lamp/test_mod_php/test.py 2014-02-24 21:31:21 +0000
@@ -29,7 +29,7 @@
2929
30class LampTest(unittest.TestCase):30class LampTest(unittest.TestCase):
31 def testModPhp(self):31 def testModPhp(self):
32 php_fh = open("/var/www/test.php", "w")32 php_fh = open("/var/www/html/test.php", "w")
33 php_fh.write("<?php $world=\"Hello World!\"; echo $world; ?>")33 php_fh.write("<?php $world=\"Hello World!\"; echo $world; ?>")
34 php_fh.close()34 php_fh.close()
3535
3636
=== modified file 'testsuites/lamp/test_mysql_select_from_users/test.py'
--- testsuites/lamp/test_mysql_select_from_users/test.py 2013-03-01 17:39:50 +0000
+++ testsuites/lamp/test_mysql_select_from_users/test.py 2014-02-24 21:31:21 +0000
@@ -39,7 +39,7 @@
3939
40 logging.debug("Cmd output: %s" % (output))40 logging.debug("Cmd output: %s" % (output))
41 logging.debug("Check if there are 7 records")41 logging.debug("Check if there are 7 records")
42 self.assertEqual(len(output.strip().split("\n")), 7)42 self.assertEqual(len(output.strip().split("\n")), 5)
4343
44if __name__ == '__main__':44if __name__ == '__main__':
45 unittest.main()45 unittest.main()
4646
=== modified file 'testsuites/lamp/test_mysql_show_databases/test.py'
--- testsuites/lamp/test_mysql_show_databases/test.py 2013-03-01 17:39:50 +0000
+++ testsuites/lamp/test_mysql_show_databases/test.py 2014-02-24 21:31:21 +0000
@@ -37,8 +37,8 @@
37 self.assertEqual(stderr, None)37 self.assertEqual(stderr, None)
38 logging.debug("Cmd output: %s" % (output))38 logging.debug("Cmd output: %s" % (output))
39 self.assertEqual(output.strip().split("\n"),39 self.assertEqual(output.strip().split("\n"),
40 ["information_schema", "mysql", "performance_schema",40 ["information_schema", "mysql",
41 "test"])41 "performance_schema"])
4242
43if __name__ == '__main__':43if __name__ == '__main__':
44 unittest.main()44 unittest.main()

Subscribers

People subscribed via source and target branches

to all changes: