#!/usr/bin/env python and main not needed in source tree

Bug #1399509 reported by Aaron Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Fix Released
Undecided
Abhishek Chanda

Bug Description

arosen@arosen-desktop:/opt/stack/congress/congress$ grep -R "usr/bin/env" * | grep py | grep -v Binary
api/application.py:#!/usr/bin/env python
api/webservice.py:#!/usr/bin/env python
datasources/keystone_driver.py:#!/usr/bin/env python
datasources/swift_driver.py:#!/usr/bin/env python
datasources/ceilometer_driver.py:#!/usr/bin/env python
datasources/nova_driver.py:#!/usr/bin/env python
datasources/datasource_driver.py:#!/usr/bin/env python
datasources/plexxi_driver.py:#!/usr/bin/env python
datasources/neutron_driver.py:#!/usr/bin/env python
datasources/glancev2_driver.py:#!/usr/bin/env python
datasources/cinder_driver.py:#!/usr/bin/env python
datasources/benchmark_driver.py:#!/usr/bin/env python
datasources/tests/unit/test_plexxi_driver.py:#!/usr/bin/env python
datasources/tests/unit/plexxi_fakes.py:#!/usr/bin/env python
dse/d6cage.py:#!/usr/bin/env python
tests/datasources/test_driver.py:#!/usr/bin/env python
tests/datasources/test_ceilometer_driver.py:#!/usr/bin/env python
tests/datasources/test_neutron_driver.py:#!/usr/bin/env python
tests/datasources/test_glancev2_driver.py:#!/usr/bin/env python
tests/datasources/test_datasource_driver.py:#!/usr/bin/env python
tests/datasources/test_cinder_driver.py:#!/usr/bin/env python
tests/datasources/test_nova_driver.py:#!/usr/bin/env python
tests/datasources/test_keystone_driver.py:#!/usr/bin/env python
tests/datasources/test_swift_driver.py:#!/usr/bin/env python
tests/helper.py:#!/usr/bin/env python

arosen@arosen-desktop:/opt/stack/congress/congress$ grep -R "main(" * | grep -iv binary | grep -v common | grep -v cli
datasources/keystone_driver.py:def main():
datasources/keystone_driver.py: main()
datasources/swift_driver.py:def main():
datasources/swift_driver.py: main()
datasources/ceilometer_driver.py:def main():
datasources/ceilometer_driver.py: main()
datasources/nova_driver.py:def main():
datasources/nova_driver.py: main()
datasources/neutron_driver.py:def main():
datasources/neutron_driver.py: main()
datasources/cinder_driver.py:def main():
datasources/cinder_driver.py: main()
datasources/benchmark_driver.py:def main():
datasources/benchmark_driver.py: main()
policy/CongressParser.py:def main(argv, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr):
policy/CongressParser.py: main(sys.argv)
policy/builtin/congressbuiltin.py:def main():
policy/builtin/congressbuiltin.py: main()
policy/builtin/tests/test_builtin.py: unittest.main()
policy/compile.py:def main(args):
policy/compile.py: main(sys.argv[1:])
policy/CongressLexer.py:def main(argv, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr):
policy/CongressLexer.py: main(sys.argv)
server/congress_server.py:def main():
server/congress_server.py: main()
tests/functional/test_api.py: unittest.main(verbosity=2)
tests/datasources/test_neutron_driver.py:def main():
tests/datasources/test_neutron_driver.py: main()
tests/policy/brokentest_runtime.py: unittest.main()
tests/policy/test_compiler.py: unittest.main()

Changed in congress:
assignee: nobody → Abhishek Chanda (abhishek-i)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (master)

Fix proposed to branch: master
Review: https://review.openstack.org/141551

Changed in congress:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

Reviewed: https://review.openstack.org/141551
Committed: https://git.openstack.org/cgit/stackforge/congress/commit/?id=fd3f1c83d087d80d7cdc566d375843ac586b2672
Submitter: Jenkins
Branch: master

commit fd3f1c83d087d80d7cdc566d375843ac586b2672
Author: Abhishek Chanda <email address hidden>
Date: Sat Dec 13 19:06:00 2014 +0530

    Remove code to run scripts directly

    Change-Id: Idf6f105c857c2d1db2ece15168d4885a35f81340
    Closes-Bug: #1399509

Changed in congress:
status: In Progress → Fix Committed
Tim Hinrichs (thinrichs)
Changed in congress:
milestone: none → kilo-3
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.