attach_disconnected test from test_regression_testsuite of ubuntu_qrt_apparmor failed with "Unable to run test sub-executable" on Mantic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QA Regression Testing |
New
|
Undecided
|
Unassigned | ||
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
Issue found on Mantic since 6.5.0-11.11
Test failed with:
running attach_disconnected
Fatal Error (unix_fd_server): Unable to run test sub-executable
By hacking the tests/regressio
diff --git a/prologue.inc.orig b/prologue.inc
index 9da05f2..fafc244 100755
--- a/prologue.inc.orig
+++ b/prologue.inc
@@ -297,7 +297,9 @@ checktestfg()
{
# global _pfmode _known _testdesc outfile teststatus testname
local ret expectedsig killedsig
+ echo "==== $outfile ==="
ret=`cat $outfile 2>/dev/null`
+ echo "$ret"
case "$ret" in
Run tests/regressio
$ sudo bash attach_
==== /tmp/sdtest.
PASS
==== /tmp/sdtest.
PASS
PASS
Fatal Error (unix_fd_server): Unable to run test sub-executable
The $ret become 'PASS\nPASS' and consequently falls in the case of testerror:
*) testerror
return
;;
description: | updated |
description: | updated |
One interesting finding is that if you run the test directly, it will just print "PASS"
$ sudo /tmp/testlib_ 4jpn6z_ /source/ mantic/ apparmor- 4.0.0~alpha2/ tests/regressio n/apparmor/ unix_fd_ server /tmp/sdtest. 346048- 11072-CHR92J/ file /tmp/testlib_ 4jpn6z_ /source/ mantic/ apparmor- 4.0.0~alpha2/ tests/regressio n/apparmor/ attach_ disconnected /tmp/sdtest. 346048- 11072-CHR92J/ unix_fd_ test /dev/loop6 /tmp/sdtest. 346048- 11072-CHR92J/ new_root/ /tmp/sdtest. 346048- 11072-CHR92J/ new_root/ put_old/
PASS
But if you redirect it into a file, you will see PASS twice: 4jpn6z_ /source/ mantic/ apparmor- 4.0.0~alpha2/ tests/regressio n/apparmor/ unix_fd_ server /tmp/sdtest. 346048- 11072-CHR92J/ file /tmp/testlib_ 4jpn6z_ /source/ mantic/ apparmor- 4.0.0~alpha2/ tests/regressio n/apparmor/ attach_ disconnected /tmp/sdtest. 346048- 11072-CHR92J/ unix_fd_ test /dev/loop6 /tmp/sdtest. 346048- 11072-CHR92J/ new_root/ /tmp/sdtest. 346048- 11072-CHR92J/ new_root/ put_old/ > /tmp/a
$ sudo /tmp/testlib_
$ cat /tmp/a
PASS
PASS
I am not sure why this is happening for the moment.