Skip to content

Commit

Permalink
Merge pull request #492 from ganga-devs/fix_lhcb_test_imports
Browse files Browse the repository at this point in the history
Fix LHCb test imports
  • Loading branch information
milliams committed May 16, 2016
2 parents afa17a5 + 1ffbade commit 4c904f5
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion python/GangaDirac/old_test/GPI/Files/TestDiracFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#from Ganga.GPIDev.Adapters.StandardJobConfig import StandardJobConfig
#from Ganga.Core.exceptions import ApplicationConfigurationError, GangaException
from Ganga.GPI import *
from Ganga.test import generateUniqueTempFile
from Ganga.old_test import generateUniqueTempFile
#import GangaDirac.Lib.Server.DiracServer as DiracServer
# GangaTest.Framework.utils defines some utility methods
from GangaTest.Framework.utils import sleep_until_completed, sleep_until_state
Expand Down
2 changes: 1 addition & 1 deletion python/GangaLHCb/old_test/Bugs/JIRA1943.gpi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from tempfile import mkdtemp
from GangaLHCb.test import *
from GangaLHCb.old_test import *
from os.path import join, basename
from os import remove

Expand Down
2 changes: 1 addition & 1 deletion python/GangaLHCb/old_test/Bugs/Savannah13943.gpi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os,os.path
from GangaTest.Framework.utils import sleep_until_completed,sleep_until_state
import tempfile
from GangaLHCb.test import *
from GangaLHCb.old_test import *

tmpdir = tempfile.mktemp()
os.mkdir(tmpdir)
Expand Down
2 changes: 1 addition & 1 deletion python/GangaLHCb/old_test/Bugs/Savannah20538.gpi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from tempfile import mkdtemp
from GangaLHCb.test import *
from GangaLHCb.old_test import *
from os.path import join,basename
from os import remove

Expand Down
4 changes: 2 additions & 2 deletions python/GangaLHCb/old_test/Bugs/Savannah36400.gpi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from GangaLHCb.test import *
from GangaLHCb.old_test import *
addDiracTestSubmitter()

#set a version that does't exist in the config
Expand All @@ -8,4 +8,4 @@ try:
j.submit()
assert False, 'Should throw an exception as root version is not known'
except JobError:
pass
pass
2 changes: 1 addition & 1 deletion python/GangaLHCb/old_test/GPI/DaVinci/TestDaVinci.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import Ganga.Utility.Config.Config

from GangaLHCb.test import getDiracAppPlatform
from GangaLHCb.old_test import getDiracAppPlatform

import Ganga.Utility.logging
logger = Ganga.Utility.logging.getLogger()
Expand Down
2 changes: 1 addition & 1 deletion python/GangaLHCb/old_test/GPI/Dirac/GaudiPythonDirac.gpi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from GangaLHCb.test import *
from GangaLHCb.old_test import *
addDiracTestSubmitter()

ap = GaudiPython()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from GangaLHCb.test import *
from GangaLHCb.old_test import *

ganga_path = os.path.abspath(os.path.dirname(__file__))
script_file = ganga_path + '/../python/GangaLHCb/old_test/GPI/Dirac/test.C'
Expand Down
2 changes: 1 addition & 1 deletion python/GangaLHCb/old_test/GPI/Dirac/TestSubmitDirac.gpi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from GangaLHCb.test import *
from GangaLHCb.old_test import *

ap = DaVinci()
j = Job(application=ap, backend=DiracTestSubmitter())
Expand Down
4 changes: 2 additions & 2 deletions python/GangaLHCb/old_test/GPI/GaudiPython/TestBender.gpip
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ from os.path import join
from GangaTest.Framework.tests import GangaGPITestCase, ICheckTest
from GangaTest.Framework.utils import file_contains, is_job_finished, write_file

from GangaLHCb.test import *
from GangaLHCb.old_test import *

import Ganga.Utility.Config.Config
from GangaLHCb.test import *
from GangaLHCb.old_test import *

import Ganga.Utility.Config

Expand Down
4 changes: 2 additions & 2 deletions python/GangaLHCb/old_test/GPI/GaudiPython/TestGaudiPython.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import tempfile
from os.path import join

from GangaLHCb.test import *
from GangaLHCb.old_test import *

#from GangaLHCb.test import *
#from GangaLHCb.old_test import *

import Ganga.Utility.Config
configDaVinci = Ganga.Utility.Config.getConfig('defaults_DaVinci')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Test the SplitByFiles algorithm using the TestSubmitter

from GangaLHCb.test import *
from GangaLHCb.old_test import *

addLocalTestSubmitter()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#from GangaGaudi.Lib.Splitters.GaudiInputDataSplitter import GaudiInputDataSplitter
#from GangaLHCb.Lib.Splitters.SplitByFiles import SplitByFiles
from GangaLHCb.Lib.LHCbDataset.LHCbDataset import LHCbDataset
from GangaLHCb.test import addDiracTestSubmitter
GangaLHCb.test.addDiracTestSubmitter()
from GangaLHCb.old_test import addDiracTestSubmitter
GangaLHCb.old_test.addDiracTestSubmitter()

# LFNs = [ 'LFN:/lhcb/data/2010/DIMUON.DST/00008395/0000/00008395_00000919_1.dimuon.dst',
# 'LFN:/lhcb/data/2010/DIMUON.DST/00008395/0000/00008395_00000922_1.dimuon.dst',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from GangaLHCb.test import *
from GangaLHCb.old_test import *

addLocalTestSubmitter()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def setUp(self):
j.outputfiles = ['dummy1.out', 'dummy2.out', 'dummy3.out']
self.j = j
self.app = j.application._impl
from GangaLHCb.test import getDiracAppPlatform
from GangaLHCb.old_test import getDiracAppPlatform
self.app.platform = getDiracAppPlatform()
#self.extra = GaudiExtras()
# self.extra.master_input_buffers['master.buffer'] = '###MASTERBUFFER###'
Expand Down
2 changes: 1 addition & 1 deletion python/GangaLHCb/old_test/config/default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### - the default timeout for Ganga tests

[Configuration]
RUNTIME_PATH = GangaTest:GangaLHCb
RUNTIME_PATH = GangaTest:GangaDirac:GangaGaudi:GangaLHCb
#disable usage monitoring
#UsageMonitoringURL=
user = testframework
Expand Down
2 changes: 1 addition & 1 deletion python/GangaLHCb/old_test/config/localxml.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### - the default timeout for Ganga tests

[Configuration]
RUNTIME_PATH = GangaTest:GangaLHCb
RUNTIME_PATH = GangaTest:GangaDirac:GangaGaudi:GangaLHCb
#disable usage monitoring
#UsageMonitoringURL=
user = testframework
Expand Down
2 changes: 1 addition & 1 deletion python/GangaLHCb/old_test/config/remote.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### - the default timeout for Ganga tests

[Configuration]
RUNTIME_PATH = GangaTest:GangaLHCb
RUNTIME_PATH = GangaTest:GangaDirac:GangaGaudi:GangaLHCb
gangadir = ~/gangadir_testing
user = testframework
repositorytype = RemoteAMGA
Expand Down
2 changes: 1 addition & 1 deletion release/tools/schema_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ case `whoami` in
gangaat )
export LOAD_PACKAGES='GangaTest:GangaAtlas' ;;
gangalb )
export LOAD_PACKAGES='GangaTest:GangaLHCb' ;;
export LOAD_PACKAGES='GangaTest:GangaDirac:GangaGaudi:GangaLHCb' ;;
esac

##Run the repo generation
Expand Down
2 changes: 1 addition & 1 deletion release/tools/schema_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ case `whoami` in
gangaat )
export LOAD_PACKAGES='GangaTest:GangaAtlas' ;;
gangalb )
export LOAD_PACKAGES='GangaTest:GangaLHCb' ;;
export LOAD_PACKAGES='GangaTest:GangaDirac:GangaGaudi:GangaLHCb' ;;
esac

GANGA_TEST='Ganga/old_test/Schema/Test'
Expand Down

0 comments on commit 4c904f5

Please sign in to comment.