]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/pybind: s/nosetests/python3/
authorKefu Chai <kchai@redhat.com>
Thu, 19 Dec 2019 03:36:59 +0000 (11:36 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 1 Apr 2021 03:25:32 +0000 (11:25 +0800)
different distros package python3-nose in different ways by adding
different postfix to "/usr/bin/nosetests" to differentiate it from
its python2 counterpart.

* on bionic, python3-nose offers "nosetests3"
* on el8, python3-nose offers "nosetests-3" and "nosetests-3.6"

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 717aaad9edb295d15998f37a5d92d11bc8345b33)

src/test/pybind/test_ceph_argparse.py
src/test/pybind/test_ceph_daemon.py

index 8548437794008855ef9515932a016e197f9a7e7e..27eeb8b31d311d6a55a9666261fa41183dae52e0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env nosetests 
+#!/usr/bin/env python3
 # -*- mode:python; tab-width:4; indent-tabs-mode:t; coding:utf-8 -*-
 # vim: ts=4 sw=4 smarttab expandtab fileencoding=utf-8
 #
index 64a0ea39fe6882e76835ba8d6c58265fb83ad789..0d34d255dc644a5cbc233f740a4a67401ad54065 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env nosetests
+#!/usr/bin/env python3
 # -*- mode:python; tab-width:4; indent-tabs-mode:t -*-
 # vim: ts=4 sw=4 smarttab expandtab
 #