Skip to content

Commit

Permalink
Merge 33c701b into 05b1961
Browse files Browse the repository at this point in the history
  • Loading branch information
grondo committed Sep 4, 2018
2 parents 05b1961 + 33c701b commit 0ac0d51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -112,6 +112,7 @@ script:
- if test "$CPPCHECK" = "t" ; then MAKECMDS="sh -x src/test/cppcheck.sh && make"; fi

- export FLUX_TESTS_LOGFILE=t
- export DISTCHECK_CONFIGURE_FLAGS=${ARGS}
- if test "$COVERITY_SCAN_BRANCH" != "1" ; then ./autogen.sh && ./configure ${ARGS} && eval ${MAKECMDS}; fi

after_success:
Expand Down
2 changes: 1 addition & 1 deletion src/test/travis-dep-builder.sh
Expand Up @@ -235,7 +235,7 @@ for pkg in $downloads; do
curl -L -O --insecure ${pkg} || die "Failed to download ${pkg}"
tar --strip-components=1 -xf *.tar.gz || die "Failed to un-tar ${name}"
test -x configure || ./autogen.sh
test -x configure && CC=gcc ./configure --prefix=${prefix} \
test -x configure && CC=gcc CXX=g++ ./configure --prefix=${prefix} \
--sysconfdir=${prefix}/etc \
${extra_configure_opts[$name]} || : &&
make -j 2 PREFIX=${prefix} &&
Expand Down
6 changes: 3 additions & 3 deletions t/t2200-job-ingest.t
Expand Up @@ -10,7 +10,7 @@ fi
if test -x ${FLUX_BUILD_DIR}/src/cmd/flux-jobspec-validate; then
test_set_prereq ENABLE_JOBSPEC
fi
if flux job --help 2>&1 | grep -q sign-type; then
if flux job submitbench --help 2>&1 | grep -q sign-type; then
test_set_prereq HAVE_FLUX_SECURITY
SUBMITBENCH_OPT_R="--reuse-signature"
SUBMITBENCH_OPT_NONE="--sign-type=none"
Expand Down Expand Up @@ -81,13 +81,13 @@ test_expect_success 'job-ingest: submit job 100 times, reuse signature' '
test_expect_success HAVE_FLUX_SECURITY 'job-ingest: submit user != signed user fails' '
! FLUX_HANDLE_USERID=9999 ${SUBMITBENCH} \
${JOBSPEC}/valid/basic.yaml 2>baduser.out &&
grep -q permitted baduser.out
grep -q "signer=$(id -u) != requestor=9999" baduser.out
'

test_expect_success HAVE_FLUX_SECURITY 'job-ingest: non-owner mech=none fails' '
! FLUX_HANDLE_ROLEMASK=0x2 ${SUBMITBENCH} \
${JOBSPEC}/valid/basic.yaml 2>badrole.out &&
grep -q permitted badrole.out
grep -q "only instance owner" badrole.out
'

test_done

0 comments on commit 0ac0d51

Please sign in to comment.