parser.add_argument('-k', '--kernel', required=True)
parser.add_argument('-km', '--kmodule', required=True)
parser.add_argument('-lm', '--lmodule', required=True)
- parser.add_argument('-l', '--lava-key', required=True)
parser.add_argument('-tc', '--tools-commit', required=True)
parser.add_argument('-uc', '--ust-commit', required=False)
args = parser.parse_args()
print('argument -t/--type {} unrecognized. Exiting...'.format(args.type))
return -1
+ lava_api_key = None
+ try:
+ lava_api_key = os.environ['LAVA_FRDESO_TOKEN']
+ except Exception, e:
+ print('LAVA_FRDESO_TOKEN not found in the environment variable. Exiting...')
+ return -1
+
if test_type is TestType.baremetal_benchmarks:
j = create_new_job(args.jobname, build_device='x86')
j['actions'].append(get_deploy_cmd_x86(args.jobname, args.kernel, args.kmodule, args.lmodule))
else:
assert False, 'Unknown test type'
- server = xmlrpclib.ServerProxy('http://%s:%s@%s/RPC2' % (USERNAME, args.lava_key, HOSTNAME))
+ server = xmlrpclib.ServerProxy('http://%s:%s@%s/RPC2' % (USERNAME, lava_api_key, HOSTNAME))
jobid = server.scheduler.submit_job(json.dumps(j))
echo 'We can now launch the lava job using those artefacts'
git clone https://github.com/lttng/lttng-ci
-set +x
python lttng-ci/scripts/lttng-baremetal-tests/lava-submit.py \
-t baremetal-benchmarks \
-j "$JOB_NAME" \
- -l "$LAVA_FRDESO_TOKEN" \
-k "$STORAGE_KERNEL_IMAGE" \
-km "$STORAGE_LINUX_MODULES" \
-lm "$STORAGE_LTTNG_MODULES" \
echo 'We can now launch the lava job using those artefacts'
git clone https://github.com/lttng/lttng-ci
-set +x
python lttng-ci/scripts/lttng-baremetal-tests/lava-submit.py \
-t baremetal-tests \
-j "$JOB_NAME" \
- -l "$LAVA_FRDESO_TOKEN" \
-k "$STORAGE_KERNEL_IMAGE" \
-km "$STORAGE_LINUX_MODULES" \
-lm "$STORAGE_LTTNG_MODULES" \
echo 'We can now launch the lava job using those artefacts'
git clone https://github.com/lttng/lttng-ci
-set +x
python lttng-ci/scripts/lttng-baremetal-tests/lava-submit.py \
-t kvm-tests \
-j "$JOB_NAME" \
- -l "$LAVA_FRDESO_TOKEN" \
-k "$STORAGE_KERNEL_IMAGE" \
-km "$STORAGE_LINUX_MODULES" \
-lm "$STORAGE_LTTNG_MODULES" \