Skip to content

Commit

Permalink
fixup! testsuite: add basic tests for shell initrc implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
grondo committed Sep 19, 2019
1 parent 33aef95 commit ba44394
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/shell/initrc/tests/0003-plugin-override.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ plugin.register { name = "test",
handlers = {
{ topic = "shell.*",
fn = function (topic)
like (topic, "^shell\.",
like (topic, "^shell",
"correct callback called for "..topic)
end
},
{ topic = "task.*",
fn = function (topic)
like (topic, "^task\.",
like (topic, "^task",
"correct callback called for "..topic)
end
}
Expand Down
3 changes: 3 additions & 0 deletions t/t2603-job-shell-initrc.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ FLUX_SHELL="${FLUX_BUILD_DIR}/src/shell/flux-shell"

INITRC_TESTDIR="${SHARNESS_TEST_SRCDIR}/shell/initrc"

# test initrc files need to be able to find fluxometer.lua:
export LUA_PATH="$LUA_PATH;${SHARNESS_TEST_DIRECTORY}/?.lua"

test_expect_success 'flux-shell: initrc: generate 1-task jobspec and matching R' '
flux jobspec srun -N1 -n1 echo Hi >j1 &&
cat >R1 <<-EOT
Expand Down

0 comments on commit ba44394

Please sign in to comment.