use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class TestRunAsMeWindows method startDedicatedScheduler.
@BeforeClass
public static void startDedicatedScheduler() throws Exception {
assumeTrue(OperatingSystem.getOperatingSystem() == OperatingSystem.windows);
setupUser();
sharedDirectory = System.getProperty(RUNASME_SHARED_DIR_PROPNAME);
assumeNotNull(sharedDirectory);
RMFactory.setOsJavaProperty();
// start an empty scheduler and add a node source with modified properties
schedulerHelper = new SchedulerTHelper(true, true);
List<String> arguments = new ArrayList<>();
// change the proactive home directory to the shared directory, proactive libs are copied before the test to this folder
// this ensures that the forked jvm will be able to access the proactive jars
arguments.addAll(setProActiveHomeInJVMParametersList(RMTHelper.setup.getJvmParametersAsList()));
arguments.add("-D" + ForkerUtils.FORK_METHOD_KEY + "=" + ForkerUtils.ForkMethod.PWD.toString());
arguments.add("-Djava.io.tmpdir=" + sharedDirectory);
arguments.add("-Dpa.logs.home=" + sharedDirectory);
schedulerHelper.createNodeSource("RunAsMeNS", 5, arguments);
}
use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class TestVariablesPropagation method startSchedulerInAnyCase.
@BeforeClass
public static void startSchedulerInAnyCase() throws Exception {
SchedulerTHelper.log("Starting a clean scheduler.");
schedulerHelper = new SchedulerTHelper(true, configFile.getPath());
}
Aggregations