Fix regression on running manage command.
Fix regression on running manage command.

Options on the manage command (./run_tests.sh) is getting shuffled,
this is due to the logic how testopts and testargs are extracted.

For example, the command "./run_tests.sh -m startdashboard test
--target test" is being translated into "startdashboard --target
test test".

The options after the "-m" should be passed as is as argument to the
manage command.

Fixes bug 1164505.

Change-Id: Id1a0699050390014487459757b3bda9c7fcca405

tanglei528/horizon,rdo-management/tuskar-ui,damien-dg/horizon,liyitest/rr,rickerc/horizon_audit,endorphinl/horizon-fork,FNST-OpenStack/horizon,yeming233/horizon,davidcusatis/horizon,noironetworks/horizon,ging/horizon,xinwu/horizon,izadorozhna/dashboard_integration_tests,ging/horizon,bac/horizon,luhanhan/horizon,maestro-hybrid-cloud/horizon,django-leonardo/horizon,rdo-management/tuskar-ui,henaras/horizon,netscaler/horizon,spring-week-topos/horizon-week,spring-week-topos/horizon-week,zouyapeng/horizon,anthonydillon/horizon,pranavtendolkr/horizon,Daniex/horizon,henaras/horizon,bac/horizon,BiznetGIO/horizon,mdavid/horizon,dan1/horizon-x509,BiznetGIO/horizon,RudoCris/horizon,anthonydillon/horizon,icloudrnd/automation_tools,mrunge/horizon_lib,idjaw/horizon,endorphinl/horizon,Tesora/tesora-horizon,orbitfp7/horizon,VaneCloud/horizon,gerrive/horizon,RudoCris/horizon,Solinea/horizon,openstack-ja/horizon,coreycb/horizon,blueboxgroup/horizon,eayunstack/horizon,j4/horizon,NeCTAR-RC/horizon,Metaswitch/horizon,sandvine/horizon,froyobin/horizon,Daniex/horizon,noironetworks/horizon,JioCloud/horizon,henaras/horizon,tanglei528/horizon,Metaswitch/horizon,CiscoSystems/horizon,yanheven/console,Daniex/horizon,netscaler/horizon,redhat-openstack/horizon,r-icarus/openstack_microserver,vladryk/horizon,tellesnobrega/horizon,xme1226/horizon,luhanhan/horizon,promptworks/horizon,bigswitch/horizon,aaronorosen/horizon-congress,doug-fish/horizon,openstack/horizon,newrocknj/horizon,mrunge/openstack_horizon,dan1/horizon-proto,saydulk/horizon,xinwu/horizon,NCI-Cloud/horizon,takeshineshiro/horizon,damien-dg/horizon,mrunge/horizon,gerrive/horizon,openstack/horizon,gerrive/horizon,Dark-Hacker/horizon,tellesnobrega/horizon,flochaz/horizon,r-icarus/openstack_microserver,karthik-suresh/horizon,blueboxgroup/horizon,saydulk/horizon,yeming233/horizon,agileblaze/OpenStackTwoFactorAuthentication,bac/horizon,aaronorosen/horizon-congress,wangxiangyu/horizon,ChameleonCloud/horizon,Mirantis/mos-horizon,redhat-cip/horizon,endorphinl/horizon-fork,wangxiangyu/horizon,r-icarus/openstack_microserver,wangxiangyu/horizon,coreycb/horizon,j4/horizon,coreycb/horizon,tsufiev/horizon,saydulk/horizon,promptworks/horizon,philoniare/horizon,redhat-openstack/horizon,Hodorable/0602,xme1226/horizon,nvoron23/avos,CiscoSystems/avos,promptworks/horizon,Daniex/horizon,flochaz/horizon,takeshineshiro/horizon,spring-week-topos/horizon-week,CiscoSystems/avos,Hodorable/0602,karthik-suresh/horizon,mrunge/horizon_lib,tqtran7/horizon,mandeepdhami/horizon,liyitest/rr,nvoron23/avos,kfox1111/horizon,kaiweifan/horizon,luhanhan/horizon,citrix-openstack-build/horizon,openstack/horizon,mdavid/horizon,anthonydillon/horizon,liyitest/rr,newrocknj/horizon,openstack/horizon,Solinea/horizon,damien-dg/horizon,NeCTAR-RC/horizon,flochaz/horizon,noironetworks/horizon,ging/horizon,mandeepdhami/horizon,CiscoSystems/horizon,ikargis/horizon_fod,tellesnobrega/horizon,openstack-ja/horizon,yjxtogo/horizon,idjaw/horizon,gochist/horizon,zouyapeng/horizon,j4/horizon,philoniare/horizon,bigswitch/horizon,watonyweng/horizon,dan1/horizon-x509,karthik-suresh/horizon,nvoron23/avos,maestro-hybrid-cloud/horizon,agileblaze/OpenStackTwoFactorAuthentication,mandeepdhami/horizon,henaras/horizon,NCI-Cloud/horizon,takeshineshiro/horizon,NCI-Cloud/horizon,openstack-ja/horizon,CiscoSystems/avos,maestro-hybrid-cloud/horizon,agileblaze/OpenStackTwoFactorAuthentication,idjaw/horizon,yjxtogo/horizon,mrunge/horizon,agileblaze/OpenStackTwoFactorAuthentication,davidcusatis/horizon,rickerc/horizon_audit,anthonydillon/horizon,tsufiev/horizon,rdo-management/tuskar-ui,tsufiev/horizon,Dark-Hacker/horizon,wolverineav/horizon,pranavtendolkr/horizon,VaneCloud/horizon,Dark-Hacker/horizon,blueboxgroup/horizon,mrunge/openstack_horizon,ChameleonCloud/horizon,mrunge/horizon,nvoron23/avos,endorphinl/horizon,kfox1111/horizon,endorphinl/horizon-fork,RudoCris/horizon,tuskar/tuskar-ui,vladryk/horizon,yanheven/console,bac/horizon,redhat-cip/horizon,Tesora/tesora-horizon,tsufiev/horizon,VaneCloud/horizon,kaiweifan/horizon,froyobin/horizon,Mirantis/mos-horizon,wolverineav/horizon,FNST-OpenStack/horizon,dan1/horizon-x509,watonyweng/horizon,bigswitch/horizon,gerrive/horizon,liyitest/rr,yeming233/horizon,ChameleonCloud/horizon,doug-fish/horizon,izadorozhna/dashboard_integration_tests,ikargis/horizon_fod,j4/horizon,FNST-OpenStack/horizon,BiznetGIO/horizon,redhat-openstack/horizon,vladryk/horizon,citrix-openstack-build/horizon,Hodorable/0602,redhat-openstack/horizon,ChameleonCloud/horizon,Metaswitch/horizon,newrocknj/horizon,Dark-Hacker/horizon,dan1/horizon-proto,mrunge/horizon_lib,dan1/horizon-proto,django-leonardo/horizon,icloudrnd/automation_tools,tuskar/tuskar-ui,CiscoSystems/horizon,sandvine/horizon,django-leonardo/horizon,redhat-cip/horizon,sandvine/horizon,Mirantis/mos-horizon,Tesora/tesora-horizon,kfox1111/horizon,newrocknj/horizon,NCI-Cloud/horizon,tanglei528/horizon,NeCTAR-RC/horizon,doug-fish/horizon,noironetworks/horizon,ging/horizon,tqtran7/horizon,coreycb/horizon,flochaz/horizon,rickerc/horizon_audit,mandeepdhami/horizon,aaronorosen/horizon-congress,JioCloud/horizon,idjaw/horizon,zouyapeng/horizon,maestro-hybrid-cloud/horizon,Solinea/horizon,ikargis/horizon_fod,philoniare/horizon,mrunge/openstack_horizon,yjxtogo/horizon,endorphinl/horizon-fork,takeshineshiro/horizon,yeming233/horizon,django-leonardo/horizon,tqtran7/horizon,FNST-OpenStack/horizon,endorphinl/horizon,tellesnobrega/horizon,tuskar/tuskar-ui,karthik-suresh/horizon,rdo-management/tuskar-ui,eayunstack/horizon,pranavtendolkr/horizon,RudoCris/horizon,Metaswitch/horizon,dan1/horizon-x509,endorphinl/horizon,Tesora/tesora-horizon,froyobin/horizon,pranavtendolkr/horizon,NeCTAR-RC/horizon,icloudrnd/automation_tools,yanheven/console,promptworks/horizon,tqtran7/horizon,Solinea/horizon,VaneCloud/horizon,CiscoSystems/horizon,xinwu/horizon,doug-fish/horizon,JioCloud/horizon,wolverineav/horizon,yjxtogo/horizon,orbitfp7/horizon,blueboxgroup/horizon,Mirantis/mos-horizon,icloudrnd/automation_tools,gochist/horizon,kfox1111/horizon,watonyweng/horizon,philoniare/horizon,orbitfp7/horizon,vladryk/horizon,redhat-cip/horizon,mdavid/horizon,wolverineav/horizon,mdavid/horizon,Hodorable/0602,xme1226/horizon,eayunstack/horizon,CiscoSystems/avos,damien-dg/horizon,citrix-openstack-build/horizon,watonyweng/horizon,sandvine/horizon,kaiweifan/horizon,zouyapeng/horizon,saydulk/horizon,gochist/horizon,BiznetGIO/horizon,xinwu/horizon,bigswitch/horizon,netscaler/horizon,luhanhan/horizon,orbitfp7/horizon,dan1/horizon-proto,davidcusatis/horizon,davidcusatis/horizon,wangxiangyu/horizon