aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep Hegde <dsandeephegde@gmail.com>2017-11-13 01:01:09 -0500
committerSandeep Hegde <dsandeephegde@gmail.com>2017-11-13 01:01:09 -0500
commited47f89e79c79aa2f69652c7302c64d8bf0880ad (patch)
treeba26cac9f2c9fb883a19b9d53c05c52a6e35400d
parentcc6c2eea6ede64280684b5c98795a207c4b78192 (diff)
downloadservo-ed47f89e79c79aa2f69652c7302c64d8bf0880ad.tar.gz
servo-ed47f89e79c79aa2f69652c7302c64d8bf0880ad.zip
Changed invocation of muatation test in CI to bash script to use virtualenv
-rw-r--r--etc/ci/buildbot_steps.yml2
-rw-r--r--etc/ci/mutation_test.py15
-rwxr-xr-xetc/ci/mutation_test.sh12
3 files changed, 13 insertions, 16 deletions
diff --git a/etc/ci/buildbot_steps.yml b/etc/ci/buildbot_steps.yml
index a25235c503f..8da9728ccd6 100644
--- a/etc/ci/buildbot_steps.yml
+++ b/etc/ci/buildbot_steps.yml
@@ -68,7 +68,7 @@ linux-rel-nogate:
- ./mach clean-nightlies --keep 3 --force
- ./mach build --release
- python ./etc/ci/chaos_monkey_test.py
- - python ./etc/ci/mutation_test.py
+ - bash ./etc/ci/mutation_test.sh
mac-rel-intermittent:
- ./mach clean-nightlies --keep 3 --force
diff --git a/etc/ci/mutation_test.py b/etc/ci/mutation_test.py
deleted file mode 100644
index e2957499b8a..00000000000
--- a/etc/ci/mutation_test.py
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 2013 The Servo Project Developers. See the COPYRIGHT
-# file at the top-level directory of this distribution.
-#
-# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-# option. This file may not be copied, modified, or distributed
-# except according to those terms.
-
-import subprocess
-import sys
-
-mutation_path = 'components/script/dom'
-status = subprocess.call('python python/servo/mutation/init.py %s' % mutation_path, shell=True)
-sys.exit(status)
diff --git a/etc/ci/mutation_test.sh b/etc/ci/mutation_test.sh
new file mode 100755
index 00000000000..a501b408796
--- /dev/null
+++ b/etc/ci/mutation_test.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+source python/_virtualenv/bin/activate
+python python/servo/mutation/init.py components/script/dom