control: Bug 487847: Fix intermittent failure of ControlViewProfileTest
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Fri, 19 Feb 2016 16:01:43 +0000 (11:01 -0500)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Fri, 19 Feb 2016 20:41:40 +0000 (15:41 -0500)
commit921151cf2a6b75afd43fc42a69aae1d7d3cfb231
treeb89cffb35371201124d6a1ddf7e37b303fc9b813
parentb2d6540e6b1911e1210d3e94df81b4ca8bbd3d42
control: Bug 487847: Fix intermittent failure of ControlViewProfileTest

On Hudson multiple instances of this test can run at the same time.
The test reads and writes to the same directory for lttng profiles.
This is not the problem. The problem is that all instances use the same
file name which is derived from the LTTng session. To fix this, each
instance needs to generate session different session names. In the
implementation the method System.nanoTime() is used for that.

Since the test uses a LTTng Tools stub where the input and output of a
command are read from a testfile the session name must not be hardcoded
in the file. The stub was update so that it's possible to inject a
session name.

Change-Id: Idab89827e4ba5e2670d3ee947a1406a5a6dd78ed
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/66943
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
lttng/org.eclipse.tracecompass.lttng2.control.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/control/ui/swtbot/tests/ControlViewProfileTest.java
lttng/org.eclipse.tracecompass.lttng2.control.ui.swtbot.tests/testfiles/Profile.cfg
lttng/org.eclipse.tracecompass.lttng2.control.ui.tests/stubs/org/eclipse/tracecompass/internal/lttng2/control/stubs/service/TestRemoteSystemProxy.java
lttng/org.eclipse.tracecompass.lttng2.control.ui.tests/stubs/org/eclipse/tracecompass/internal/lttng2/control/stubs/shells/LTTngToolsFileShell.java
This page took 0.024724 seconds and 5 git commands to generate.