Skip to content

Commit

Permalink
[tests] The test context object contains the executable's name.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed May 2, 2020
1 parent 1258ca2 commit b878d12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -86,6 +86,9 @@ class SreRunContext {
@Accessors(PUBLIC_GETTER)
volatile var bootAgentId : UUID

@Accessors
var executableName : String

def getBootOrFirstAgentId : UUID {
var id = getBootAgentId
if (id === null) {
Expand Down
Expand Up @@ -62,6 +62,7 @@ class SreRunExtension implements ParameterResolver, InvocationInterceptor {
SRE::resetServiceLoader
SRE::bootstrap = null
var context = new SreRunContext
context.executableName = parameterContext.declaringExecutable.declaringClass.name + "#" + parameterContext.declaringExecutable.name
return context
}

Expand Down

0 comments on commit b878d12

Please sign in to comment.