LAVA2: use new rootfs
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 29 Nov 2018 21:21:01 +0000 (16:21 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 29 Nov 2018 21:21:01 +0000 (16:21 -0500)
The new rootfs have all the necessary dependancy baked-in.

This save time and reduce complexity overall.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
scripts/system-tests/lava2-submit.py
scripts/system-tests/template_lava_job.jinja2

index 2ad65123c957b776d750d0ed26e6866fc93a946f..d61dfbf1cc527053f7014a719c0f475f350b8920 100644 (file)
@@ -50,12 +50,6 @@ class DeviceType():
         'x86' : x86,
     }
 
-def get_packages():
-    return ['bsdtar', 'psmisc', 'wget', 'python3', 'python3-pip', \
-            'libglib2.0-dev', 'libffi-dev', 'elfutils', 'libdw-dev', \
-            'libelf-dev', 'libmount-dev', 'libxml2', 'libpfm4-dev', \
-            'libnuma-dev', 'python3-dev', 'swig', 'stress']
-
 def get_job_bundle_content(server, job):
     try:
         bundle_sha = server.scheduler.job_status(str(job))['bundle_sha1']
@@ -183,7 +177,7 @@ def get_vlttng_cmd(device, lttng_tools_commit, lttng_ust_commit=None):
     return vlttng_cmd
 
 def main():
-    nfsrootfs = "https://obj.internal.efficios.com/lava/rootfs/rootfs_amd64_trusty_2016-02-23-1134.tar.gz"
+    nfsrootfs = "https://obj.internal.efficios.com/lava/rootfs/rootfs_amd64_bionic_2018-11-29.tar.gz"
     test_type = None
     parser = argparse.ArgumentParser(description='Launch baremetal test using Lava')
     parser.add_argument('-t', '--type', required=True)
@@ -237,7 +231,6 @@ def main():
 
     context['job_name'] = args.jobname
     context['test_type'] = test_type
-    context['packages'] = get_packages()
     context['random_seed'] = random.randint(0, 1000000)
     context['device_type'] = device_type
 
index c7ac308a941e682ed6116b7f431ba72d4bab477f..69a62a9097abb86b3d9a732d7694d4c3f9c0b4c1 100644 (file)
@@ -53,6 +53,11 @@ actions:
           minutes: 10
         method: ipxe
         commands: nfs
+        auto_login:
+          login_prompt: 'login:'
+          username: root
+          password_prompt: 'Password:'
+          password: root
         prompts:
           - 'root@linaro-server:~#'
 
@@ -70,8 +75,8 @@ actions:
                       - x86
                 run:
                   steps:
-                    - cat /etc/resolv.conf
                     - echo nameserver 172.18.0.12 > /etc/resolv.conf
+                    - ip a
                     - groupadd tracing
                   {% if device_type == DeviceType.x86 %}
                     - mount /dev/sda1 /tmp
@@ -81,7 +86,6 @@ actions:
                     - locale-gen en_US.UTF-8
                     - apt-get update
                     - apt-get upgrade
-                    - apt-get install -y {{ packages|join(" ") }}
                   {% if test_type != TestType.kvm_fuzzing_tests %}
                     - pip3 install --upgrade pip
                     - hash -r
This page took 0.025414 seconds and 4 git commands to generate.